add agent vip activateagent
This commit is contained in:
		| @@ -1,6 +1,4 @@ | ||||
| // Code generated by goctl. DO NOT EDIT. | ||||
| // goctl 1.7.3 | ||||
|  | ||||
| package handler | ||||
|  | ||||
| import ( | ||||
| @@ -71,6 +69,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 				Path:    "/commission", | ||||
| 				Handler: agent.GetAgentCommissionHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				Method:  http.MethodPost, | ||||
| 				Path:    "/membership/activate", | ||||
| 				Handler: agent.ActivateAgentMembershipHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				Method:  http.MethodGet, | ||||
| 				Path:    "/revenue", | ||||
| @@ -108,11 +111,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 				Path:    "/link", | ||||
| 				Handler: agent.GetLinkDataHandler(serverCtx), | ||||
| 			}, | ||||
| 			{ | ||||
| 				Method:  http.MethodPost, | ||||
| 				Path:    "/membership/activate", | ||||
| 				Handler: agent.ActivateAgentMembershipHandler(serverCtx), | ||||
| 			}, | ||||
| 		}, | ||||
| 		rest.WithPrefix("/api/v1/agent"), | ||||
| 	) | ||||
| @@ -183,6 +181,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 		rest.WithMiddlewares( | ||||
| 			[]rest.Middleware{serverCtx.SourceInterceptor}, | ||||
| 			[]rest.Route{ | ||||
| 				{ | ||||
| 					Method:  http.MethodPost, | ||||
| 					Path:    "/pay/check", | ||||
| 					Handler: pay.PaymentCheckHandler(serverCtx), | ||||
| 				}, | ||||
| 				{ | ||||
| 					Method:  http.MethodPost, | ||||
| 					Path:    "/pay/iap_callback", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user