123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
- "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 OwnerListLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewOwnerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerListLogic {
- return &OwnerListLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *OwnerListLogic) OwnerList(req *types.OwnerListReq) (resp *types.Reply, err error) {
- // todo: add your logic here and delete this line
- resp = &types.Reply{}
- ownerService := &service.OwnerService{
- PartyA: req.PartyA,
- Supplier: req.Supplier,
- Heterotophy: req.Heterotophy,
- Intermediary: req.Intermediary,
- Agency: req.Agency,
- SearchEntName: req.SearchEntName,
- SourceType: req.SourceType,
- ProcessingStatus: req.ProcessingStatus,
- Area: req.Area,
- PositionId: req.PositionId,
- PageIndex: req.PageIndex,
- PageSize: req.PageSize,
- }
- data := ownerService.OwnerlList()
- resp.Data = data
- return
- }
|