107 lines
3.3 KiB
Go
107 lines
3.3 KiB
Go
// 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)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// 按 id 批量查地区名称
|
|
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)
|
|
}
|