新增APP查询页
This commit is contained in:
		| @@ -182,6 +182,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 		rest.WithPrefix("/api/v1/product"), | ||||
| 	) | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
| 				Method:  http.MethodGet, | ||||
| 				Path:    "/app_en/:product_en", | ||||
| 				Handler: product.GetProductAppByEnHandler(serverCtx), | ||||
| 			}, | ||||
| 		}, | ||||
| 		rest.WithPrefix("/api/v1/product"), | ||||
| 	) | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
| @@ -190,6 +201,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 				Path:    "/query/service_agent/:product", | ||||
| 				Handler: query.QueryServiceAgentHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				Method:  http.MethodPost, | ||||
| 				Path:    "/query/service_app/:product", | ||||
| 				Handler: query.QueryServiceAppHandler(serverCtx), | ||||
| 			}, | ||||
| 		}, | ||||
| 		rest.WithPrefix("/api/v1"), | ||||
| 	) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user