12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package logic
- import (
- "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/service"
- "context"
- "fmt"
- "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/svc"
- "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type OwnerCooperateLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewOwnerCooperateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerCooperateLogic {
- return &OwnerCooperateLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *OwnerCooperateLogic) OwnerCooperate(req *types.CooperateOwnerListReq) (resp *types.Reply, err error) {
- // todo: add your logic here and delete this line
- logx.Info(fmt.Sprintf("%+v", req))
- resp = &types.Reply{}
- ownerService := &service.OwnerService{
- BuyerId: req.BuyerId,
- BuyerName: req.BuyerName,
- WinnerName: req.WinnerName,
- WinnerId: req.WinnerId,
- CooperateType: req.CooperateType,
- PositionId: req.PositionId,
- }
- data := ownerService.OwnerCooperate()
- resp.Data = data
- return
- }
|