1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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 ClueAddLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewClueAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClueAddLogic {
- return &ClueAddLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *ClueAddLogic) ClueAdd(req *types.ClueAddReq) (resp *types.Reply, err error) {
- // todo: add your logic here and delete this line
- resp = &types.Reply{}
- clue := &service.SaleClueService{
- AppId: req.AppId,
- PositionId: req.PositionId,
- EntId: req.EntId,
- EntUserId: req.EntUserId,
- AccountId: req.AccountId,
- ClueName: req.ClueName,
- CluesSource: req.CluesSource,
- Summary: req.Summary,
- EmployInfoId: req.EmployInfoId,
- Types: req.Types,
- User: req.User,
- FollowUpTime: req.FollowUpTime,
- CreateName: req.CreateName,
- BaseUserId: req.BaseUserId,
- }
- status, groupId := clue.Add(l.ctx)
- resp.Data = map[string]interface{}{
- "status": status,
- "groupId": groupId,
- }
- return
- }
|