1234567891011121314151617181920212223242526272829303132333435 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/biService/service"
- "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.BiReply, error) {
- // todo: add your logic here and delete this line
- v := service.InfoService{}
- data := v.Myinfo(in.Sid)
- return &pb.BiReply{
- Data: data,
- }, nil
- }
|