From 8d7a2d55e0868db900c13c5eef0a3eb7f1a6eee2 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 08 十一月 2023 09:50:55 +0800
Subject: [PATCH] 销售明细单从aps查询产品订单

---
 model/request/common.go |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/model/request/common.go b/model/request/common.go
index 492de9d..db64168 100644
--- a/model/request/common.go
+++ b/model/request/common.go
@@ -12,3 +12,17 @@
 type GetByUserId struct {
 	UserId string `json:"userId"` // 鐢ㄦ埛ID
 }
+
+func (p PageInfo) Check() bool {
+	if p.Page <= 0 {
+		return false
+	}
+	if p.PageSize <= 0 || p.PageSize > 500 {
+		return false
+	}
+	return true
+}
+
+type CommonIds struct {
+	Ids []int `json:"ids,omitempty" binding:"required"`
+}

--
Gitblit v1.8.0