1、改短信模板2、获取列表筛选修复
This commit is contained in:
@@ -26,8 +26,12 @@ func NewGetProductPageListLogic(ctx context.Context, svcCtx *svc.ServiceContext)
|
||||
}
|
||||
|
||||
func (l *GetProductPageListLogic) GetProductPageList(in *sentinel.PageListRequest) (*sentinel.ProductResponse, error) {
|
||||
var isVisible *int64
|
||||
if in.IsVisible == 0 {
|
||||
isVisible = nil
|
||||
}
|
||||
products, total, err := l.svcCtx.ProductsModel.FindProductsList(l.ctx, in.Page, in.PageSize, &model.ProductFilter{
|
||||
IsVisible: &in.IsVisible,
|
||||
IsVisible: isVisible,
|
||||
ProductName: in.ProductName,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user