Explorar o código

fix:更改请求方法

xmy %!s(int64=3) %!d(string=hai) anos
pai
achega
ee4605e49c
Modificáronse 2 ficheiros con 10 adicións e 10 borrados
  1. 5 5
      api/internal/handler/routes.go
  2. 5 5
      api/jyinfo.api

+ 5 - 5
api/internal/handler/routes.go

@@ -33,7 +33,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: supplySearchHandler(serverCtx),
 			},
 			{
-				Method:  http.MethodGet,
+				Method:  http.MethodPost,
 				Path:    "/jyinfo/publishStatus",
 				Handler: pubInfoCountHandler(serverCtx),
 			},
@@ -43,12 +43,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: assProjecctHandler(serverCtx),
 			},
 			{
-				Method:  http.MethodGet,
+				Method:  http.MethodPost,
 				Path:    "/jyinfo/getArea",
 				Handler: getProvinceHandler(serverCtx),
 			},
 			{
-				Method:  http.MethodGet,
+				Method:  http.MethodPost,
 				Path:    "/jyinfo/getIndustry",
 				Handler: getIndustryHandler(serverCtx),
 			},
@@ -58,7 +58,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: myPublishListHandler(serverCtx),
 			},
 			{
-				Method:  http.MethodGet,
+				Method:  http.MethodPost,
 				Path:    "/jyinfo/myPublishDetail",
 				Handler: myPublishDetailHandler(serverCtx),
 			},
@@ -68,7 +68,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: delMyPublishHandler(serverCtx),
 			},
 			{
-				Method:  http.MethodGet,
+				Method:  http.MethodPost,
 				Path:    "/jyinfo/reviewStatus",
 				Handler: reviewStatusHandler(serverCtx),
 			},

+ 5 - 5
api/jyinfo.api

@@ -121,28 +121,28 @@ service Info-api {
 	post /jyinfo/supplySearch (pubSupplyInfoReq) returns (commonRes)
 	//已信息发布数量
 	@handler pubInfoCount
-	get /jyinfo/publishStatus (commonReq) returns (commonRes)
+	post /jyinfo/publishStatus (commonReq) returns (commonRes)
 	//关联项目联想
 	@handler assProjecct
 	post /jyinfo/pushedRelated (assProjecctReq) returns (commonRes)
 	//获取省市列表
 	@handler getProvince
-	get /jyinfo/getArea returns (commonRes)
+	post /jyinfo/getArea returns (commonRes)
 	//获取行业列表
 	@handler getIndustry
-	get /jyinfo/getIndustry returns (commonRes)
+	post /jyinfo/getIndustry returns (commonRes)
 	//我的发布列表
 	@handler myPublishList
 	post /jyinfo/myPublishList (myPublishListReq) returns (commonRes)
 	//我发布的信息详情
 	@handler myPublishDetail
-	get /jyinfo/myPublishDetail (myPublishCommonReq) returns (commonRes)
+	post /jyinfo/myPublishDetail (myPublishCommonReq) returns (commonRes)
 	//删除我发布的信息
 	@handler delMyPublish
 	post /jyinfo/delMyPublish (myPublishCommonReq) returns (commonRes)
 	//信息审核状态查询
 	@handler reviewStatus
-	get /jyinfo/reviewStatus (reviewCommonReq) returns (commonRes)
+	post /jyinfo/reviewStatus (reviewCommonReq) returns (commonRes)
 	//附件上传
 	@handler upload
 	post /jyinfo/infoFile/upload (uploadReq) returns (commonRes)