1234567891011121314151617181920212223242526272829 |
- 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 IdentityByEntIdLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewIdentityByEntIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IdentityByEntIdLogic {
- return &IdentityByEntIdLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 根据企业id获取身份信息
- func (l *IdentityByEntIdLogic) IdentityByEntId(in *pb.IdentityReq) (*pb.Identity, error) {
- return service.IdentityByEntId(in.Id), nil
- }
|