123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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{
- PositionId: req.PositionId,
- EntId: req.EntId,
- EntUserId: req.EntUserId,
- ClueName: req.ClueName,
- CluesSource: req.CluesSource,
- Summary: req.Summary,
- EmployInfoId: req.EmployInfoId,
- Types: req.Types,
- User: req.User,
- FollowUpTime: req.FollowUpTime,
- }
- status := clue.Add(l.ctx)
- resp.Data = map[string]interface{}{
- "status": status,
- }
- return
- }
|