146 lines
4.8 KiB
Go
146 lines
4.8 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// 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)
|
|
}
|
|
|
|
func (s *ChoreServer) Upload(ctx context.Context, in *chore.UploadReq) (*chore.Response, error) {
|
|
l := logic.NewUploadLogic(ctx, s.svcCtx)
|
|
return l.Upload(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) ApiSystemItems(ctx context.Context, in *chore.ApiSystemReq) (*chore.Response, error) {
|
|
l := logic.NewApiSystemItemsLogic(ctx, s.svcCtx)
|
|
return l.ApiSystemItems(in)
|
|
}
|
|
|
|
func (s *ChoreServer) ApiSystemInfo(ctx context.Context, in *chore.ApiSystemReq) (*chore.Response, error) {
|
|
l := logic.NewApiSystemInfoLogic(ctx, s.svcCtx)
|
|
return l.ApiSystemInfo(in)
|
|
}
|
|
|
|
func (s *ChoreServer) ApiAnswerItems(ctx context.Context, in *chore.EmptyReq) (*chore.Response, error) {
|
|
l := logic.NewApiAnswerItemsLogic(ctx, s.svcCtx)
|
|
return l.ApiAnswerItems(in)
|
|
}
|
|
|
|
func (s *ChoreServer) ApiAnswerIProgress(ctx context.Context, in *chore.EmptyReq) (*chore.Response, error) {
|
|
l := logic.NewApiAnswerIProgressLogic(ctx, s.svcCtx)
|
|
return l.ApiAnswerIProgress(in)
|
|
}
|
|
|
|
func (s *ChoreServer) ApiAnswerSave(ctx context.Context, in *chore.EmptyReq) (*chore.Response, error) {
|
|
l := logic.NewApiAnswerSaveLogic(ctx, s.svcCtx)
|
|
return l.ApiAnswerSave(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) InternalUpload(ctx context.Context, in *chore.InternalUploadReq) (*chore.InternalUploadData, error) {
|
|
l := logic.NewInternalUploadLogic(ctx, s.svcCtx)
|
|
return l.InternalUpload(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)
|
|
}
|