12345678910111213141516171819202122232425262728293031323334353637 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
- "github.com/gogf/gf/v2/util/gconv"
- "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type MyinfoLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewMyinfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MyinfoLogic {
- return &MyinfoLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *MyinfoLogic) Myinfo(req *types.MyInfoReq) (resp *types.BiResp, err error) {
- // todo: add your logic here and delete this line
- res, err := l.svcCtx.BiServiceRpc.MyInfo(l.ctx, &biservice.MyInfoReq{
- Bid: req.Bid,
- Sid: req.Sid,
- })
- data := gconv.Map(gconv.UnsafeBytesToStr(res.Data))
- return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: data}, err
- }
|