package logic import ( "context" "github.com/zeromicro/go-zero/core/logx" "userCenter/rpc/internal/svc" "userCenter/rpc/pb" "userCenter/service" ) type UserAddLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUserAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserAddLogic { return &UserAddLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 新增用户 func (l *UserAddLogic) UserAdd(in *pb.UserAddReq) (*pb.UserAddResp, error) { // todo: add your logic here and delete this line return service.UserAdd(in), nil }