// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: chore.proto package server import ( "context" "lone-services/rpc/chore/pb" "lone-services/services/chore/internal/logic" "lone-services/services/chore/internal/svc" ) type ChoreServer struct { svcCtx *svc.ServiceContext chore.UnimplementedChoreServer } func NewChoreServer(svcCtx *svc.ServiceContext) *ChoreServer { return &ChoreServer{ svcCtx: svcCtx, } } func (s *ChoreServer) Policy(ctx context.Context, in *chore.PolicyReq) (*chore.Response, error) { l := logic.NewPolicyLogic(ctx, s.svcCtx) return l.Policy(in) } // 对外:服务端直传 OSS func (s *ChoreServer) Upload(ctx context.Context, in *chore.UploadReq) (*chore.Response, error) { l := logic.NewUploadLogic(ctx, s.svcCtx) return l.Upload(in) } // 对内:服务间直传 OSS(无 HTTP 暴露) func (s *ChoreServer) InternalUpload(ctx context.Context, in *chore.InternalUploadReq) (*chore.InternalUploadData, error) { l := logic.NewInternalUploadLogic(ctx, s.svcCtx) return l.InternalUpload(in) } func (s *ChoreServer) Test(ctx context.Context, in *chore.TestReq) (*chore.Response, error) { l := logic.NewTestLogic(ctx, s.svcCtx) return l.Test(in) } func (s *ChoreServer) DecryptMobile(ctx context.Context, in *chore.DecryptMobileReq) (*chore.Response, error) { l := logic.NewDecryptMobileLogic(ctx, s.svcCtx) return l.DecryptMobile(in) } func (s *ChoreServer) Regions(ctx context.Context, in *chore.RegionsReq) (*chore.Response, error) { l := logic.NewRegionsLogic(ctx, s.svcCtx) return l.Regions(in) } func (s *ChoreServer) SendSms(ctx context.Context, in *chore.SendSmsReq) (*chore.Response, error) { l := logic.NewSendSmsLogic(ctx, s.svcCtx) return l.SendSms(in) } func (s *ChoreServer) AnswerItems(ctx context.Context, in *chore.EmptyReq) (*chore.Response, error) { l := logic.NewAnswerItemsLogic(ctx, s.svcCtx) return l.AnswerItems(in) } func (s *ChoreServer) AnswerStatus(ctx context.Context, in *chore.StatusReq) (*chore.Response, error) { l := logic.NewAnswerStatusLogic(ctx, s.svcCtx) return l.AnswerStatus(in) } func (s *ChoreServer) AnswerInfo(ctx context.Context, in *chore.IdReq) (*chore.Response, error) { l := logic.NewAnswerInfoLogic(ctx, s.svcCtx) return l.AnswerInfo(in) } func (s *ChoreServer) AnswerCreate(ctx context.Context, in *chore.EditReq) (*chore.Response, error) { l := logic.NewAnswerCreateLogic(ctx, s.svcCtx) return l.AnswerCreate(in) } func (s *ChoreServer) AnswerEdit(ctx context.Context, in *chore.EditReq) (*chore.Response, error) { l := logic.NewAnswerEditLogic(ctx, s.svcCtx) return l.AnswerEdit(in) } func (s *ChoreServer) SystemEdit(ctx context.Context, in *chore.SystemEditReq) (*chore.Response, error) { l := logic.NewSystemEditLogic(ctx, s.svcCtx) return l.SystemEdit(in) } func (s *ChoreServer) SystemStatus(ctx context.Context, in *chore.StatusReq) (*chore.Response, error) { l := logic.NewSystemStatusLogic(ctx, s.svcCtx) return l.SystemStatus(in) } func (s *ChoreServer) SystemInfo(ctx context.Context, in *chore.IdReq) (*chore.Response, error) { l := logic.NewSystemInfoLogic(ctx, s.svcCtx) return l.SystemInfo(in) } func (s *ChoreServer) SystemItems(ctx context.Context, in *chore.EmptyReq) (*chore.Response, error) { l := logic.NewSystemItemsLogic(ctx, s.svcCtx) return l.SystemItems(in) } func (s *ChoreServer) Document(ctx context.Context, in *chore.DocumentReq) (*chore.Response, error) { l := logic.NewDocumentLogic(ctx, s.svcCtx) return l.Document(in) } func (s *ChoreServer) RegionsByIds(ctx context.Context, in *chore.RegionsByIdsReq) (*chore.RegionsByIdsData, error) { l := logic.NewRegionsByIdsLogic(ctx, s.svcCtx) return l.RegionsByIds(in) } func (s *ChoreServer) InternalActionApplyLogCreate(ctx context.Context, in *chore.InternalActionApplyLogCreateReq) (*chore.InternalActionApplyLogCreateData, error) { l := logic.NewInternalActionApplyLogCreateLogic(ctx, s.svcCtx) return l.InternalActionApplyLogCreate(in) } func (s *ChoreServer) SendPassword(ctx context.Context, in *chore.SendPasswordReq) (*chore.SendPasswordResp, error) { l := logic.NewSendPasswordLogic(ctx, s.svcCtx) return l.SendPassword(in) }