package logic import ( "bp.jydev.jianyu360.cn/CRM/application/api/service" "context" "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc" "bp.jydev.jianyu360.cn/CRM/application/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type EmployDistributeLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewEmployDistributeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EmployDistributeLogic { return &EmployDistributeLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *EmployDistributeLogic) EmployDistribute(req *types.EmployDistributeReq) (resp *types.Reply, err error) { // todo: add your logic here and delete this line resp = &types.Reply{} employService := &service.EmPloyService{} resp.Data = map[string]interface{}{ "status": employService.DistributePerson(req), } return }