package logic import ( "bp.jydev.jianyu360.cn/BaseService/biService/service" "context" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb" "github.com/zeromicro/go-zero/core/logx" ) type MyInfoLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewMyInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MyInfoLogic { return &MyInfoLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *MyInfoLogic) MyInfo(in *pb.MyInfoReq) (*pb.Reply, error) { // todo: add your logic here and delete this line v := service.InfoService{} data := v.Myinfo(in.Sid) return &pb.Reply{ Data: data, }, nil }