Files
2026-04-28 10:29:02 +08:00

42 lines
1.1 KiB
Go

package request
// ---- ----
// SaveRefundReq 新增请求
type SaveRefundReq struct {
UserId string `json:"userId" form:"userId"` //
}
// UpdateRefundReq 更新请求
type UpdateRefundReq struct {
Id string `json:"id" binding:"required"` // ID
UserId string `json:"userId" form:"userId"` //
}
// ListRefundReq 分页查询请求
type ListRefundReq struct {
Current int `json:"current" form:"current"` // 页码
PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
Keyword string `json:"keyword" form:"keyword"` // 关键字搜索
}
// ---- ----
// SaveStockReq 新增请求
type SaveStockReq struct {
Amount int64 `json:"amount" form:"amount"` //
}
// UpdateStockReq 更新请求
type UpdateStockReq struct {
Id string `json:"id" binding:"required"` // ID
Amount int64 `json:"amount" form:"amount"` //
}
// ListStockReq 分页查询请求
type ListStockReq struct {
Current int `json:"current" form:"current"` // 页码
PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
Keyword string `json:"keyword" form:"keyword"` // 关键字搜索
}