add updateQueryData
This commit is contained in:
		| @@ -1,4 +1,6 @@ | ||||
| // Code generated by goctl. DO NOT EDIT. | ||||
| // goctl 1.7.3 | ||||
|  | ||||
| package handler | ||||
|  | ||||
| import ( | ||||
| @@ -257,12 +259,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
| 				// 查询详情 | ||||
| 				Method:  http.MethodGet, | ||||
| 				Path:    "/query/:id", | ||||
| 				Handler: query.QueryDetailHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				// 查询示例 | ||||
| 				Method:  http.MethodGet, | ||||
| @@ -306,11 +302,23 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
| 				// 查询详情 | ||||
| 				Method:  http.MethodGet, | ||||
| 				Path:    "/query/:id", | ||||
| 				Handler: query.QueryDetailHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				Method:  http.MethodPost, | ||||
| 				Path:    "/query/single/test", | ||||
| 				Handler: query.QuerySingleTestHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				// 更新查询数据 | ||||
| 				Method:  http.MethodPost, | ||||
| 				Path:    "/query/update_data", | ||||
| 				Handler: query.UpdateQueryDataHandler(serverCtx), | ||||
| 			}, | ||||
| 		}, | ||||
| 		rest.WithPrefix("/api/v1"), | ||||
| 	) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user