package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb" "bp.jydev.jianyu360.cn/BaseService/userCenter/service" "github.com/zeromicro/go-zero/core/logx" ) type UserIdentityLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUserIdentityLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserIdentityLogic { return &UserIdentityLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 获取用户身份相关参数 func (l *UserIdentityLogic) UserIdentity(in *pb.UserIdentityReq) (*pb.UserIdentityResp, error) { // todo: add your logic here and delete this line return service.UserIdentity(in), nil }