Files
lone-services/services/chore/internal/server/choreServer.go
T
zzw 72d55d396d
CI / changes (push) Successful in 36s
CI / docker-bff (push) Successful in 3m8s
CI / docker-product (push) Successful in 3m36s
CI / docker-admin (push) Successful in 3m35s
CI / docker-user (push) Successful in 9s
CI / docker-ad (push) Successful in 29s
CI / docker-chore (push) Failing after 4s
feat: product number
2026-08-26 16:53:50 +08:00

35 lines
760 B
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)
}