Files
lone-services/services/chore/internal/server/choreServer.go
T
gjs 38e040af07
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 17s
CI / bff (push) Successful in 13s
CI / chore (push) Successful in 15s
CI / equipment (push) Successful in 14s
CI / express (push) Successful in 14s
CI / product (push) Successful in 13s
CI / record (push) Successful in 13s
CI / sale (push) Successful in 13s
CI / task (push) Successful in 13s
CI / user (push) Successful in 14s
CI / wecom (push) Successful in 13s
订单下载。jd下单。。
2026-09-09 17:52:07 +08:00

96 lines
2.9 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) 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) 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)
}