1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/types"
- "bp.jydev.jianyu360.cn/CRM/application/service"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type CanAddReqLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewCanAddReqLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CanAddReqLogic {
- return &CanAddReqLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *CanAddReqLogic) CanAddReq(req *types.CanAddReq) (resp *types.Reply, err error) {
- // todo: add your logic here and delete this line
- resp = &types.Reply{}
- status, error_msg := service.CanAdd(req.EntId, req.Key, req.EmployInfoId, req.EmployCustomId, req.PositionId)
- resp.Error_msg = error_msg
- resp.Data = map[string]interface{}{
- "status": status,
- }
- return
- }
|