|
@@ -11,15 +11,15 @@ import (
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
)
|
|
|
|
|
|
-type SearchListLogic struct {
|
|
|
|
|
|
+type BuyerSearchListLogic struct {
|
|
logx.Logger
|
|
logx.Logger
|
|
ctx context.Context
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
svcCtx *svc.ServiceContext
|
|
r *http.Request
|
|
r *http.Request
|
|
}
|
|
}
|
|
|
|
|
|
-func NewSearchListLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *SearchListLogic {
|
|
|
|
- return &SearchListLogic{
|
|
|
|
|
|
+func NewBuyerSearchListLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *BuyerSearchListLogic {
|
|
|
|
+ return &BuyerSearchListLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
svcCtx: svcCtx,
|
|
@@ -27,7 +27,7 @@ func NewSearchListLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-func (l *SearchListLogic) SearchList(req *types.BuyerListReq) (resp *types.CommonResp, err error) {
|
|
|
|
|
|
+func (l *BuyerSearchListLogic) BuyerSearchList(req *types.BuyerListReq) (resp *types.CommonResp, err error) {
|
|
if req.EntUserId == "" {
|
|
if req.EntUserId == "" {
|
|
req.IsCheckReceive = false
|
|
req.IsCheckReceive = false
|
|
}
|
|
}
|