first commit
This commit is contained in:
		
							
								
								
									
										42
									
								
								apps/user/internal/server/enterprise/enterpriseserver.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								apps/user/internal/server/enterprise/enterpriseserver.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| // Code generated by goctl. DO NOT EDIT. | ||||
| // goctl 1.7.2 | ||||
| // Source: user.proto | ||||
|  | ||||
| package server | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
|  | ||||
| 	"tianyuan-api/apps/user/internal/logic/enterprise" | ||||
| 	"tianyuan-api/apps/user/internal/svc" | ||||
| 	"tianyuan-api/apps/user/user" | ||||
| ) | ||||
|  | ||||
| type EnterpriseServer struct { | ||||
| 	svcCtx *svc.ServiceContext | ||||
| 	user.UnimplementedEnterpriseServer | ||||
| } | ||||
|  | ||||
| func NewEnterpriseServer(svcCtx *svc.ServiceContext) *EnterpriseServer { | ||||
| 	return &EnterpriseServer{ | ||||
| 		svcCtx: svcCtx, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // 获取待审核企业列表 | ||||
| func (s *EnterpriseServer) GetPendingEnterprise(ctx context.Context, in *user.GetPendingEnterpriseReq) (*user.GetPendingEnterpriseResp, error) { | ||||
| 	l := enterpriselogic.NewGetPendingEnterpriseLogic(ctx, s.svcCtx) | ||||
| 	return l.GetPendingEnterprise() | ||||
| } | ||||
|  | ||||
| // 审核企业 | ||||
| func (s *EnterpriseServer) ReviewEnterprise(ctx context.Context, in *user.ReviewEnterpriseReq) (*user.EmptyResponse, error) { | ||||
| 	l := enterpriselogic.NewReviewEnterpriseLogic(ctx, s.svcCtx) | ||||
| 	return l.ReviewEnterprise(in) | ||||
| } | ||||
|  | ||||
| // 提交审核 | ||||
| func (s *EnterpriseServer) CreateEnterpriseAuth(ctx context.Context, in *user.EnterpriseAuthReq) (*user.EmptyResponse, error) { | ||||
| 	l := enterpriselogic.NewCreateEnterpriseAuthLogic(ctx, s.svcCtx) | ||||
| 	return l.CreateEnterpriseAuth(in) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user