12345678910111213141516171819202122232425262728293031323334353637383940 |
- package logic
- import (
- "context"
- "fmt"
- "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type GetEntUserListLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewGetEntUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetEntUserListLogic {
- return &GetEntUserListLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 获取企业员工列表
- func (l *GetEntUserListLogic) GetEntUserList(in *pb.EntUserListReq) (*pb.EntUserListResp, error) {
- // todo: add your logic here and delete this line
- resp := &pb.EntUserListResp{}
- data, msg := Entservice.GetEntUserList(in)
- if msg != "" {
- l.Error(fmt.Sprintf("%+v", in), msg)
- resp.ErrorMsg = msg
- resp.ErrorCode = -1
- } else {
- resp.Data = data
- }
- return resp, nil
- }
|