perf: filter by condition
This commit is contained in:
@@ -52,6 +52,7 @@ type ContractQueryParam struct {
|
||||
Id int64 `form:"id" binding:"omitempty,gt=0"`
|
||||
Pids []int64 `form:"pids" json:"pids" binding:"-"`
|
||||
Name string `form:"name" binding:"-"`
|
||||
Status int `form:"status" binding:"omitempty,oneof=1 2"`
|
||||
Creator int64 `form:"creator,omitempty" binding:"-"`
|
||||
Page Page
|
||||
}
|
||||
|
||||
@@ -58,11 +58,14 @@ type CustomerDeleteParam struct {
|
||||
}
|
||||
|
||||
type CustomerQueryParam struct {
|
||||
Id int64 `form:"id" binding:"omitempty,gt=0"`
|
||||
Name string `form:"name" binding:"-"`
|
||||
Phone string `form:"phone" binding:"omitempty,len=11"`
|
||||
Creator int64 `form:"creator,omitempty" binding:"-"`
|
||||
Page Page
|
||||
Id int64 `form:"id" binding:"omitempty,gt=0"`
|
||||
Name string `form:"name" binding:"omitempty,gt=0"`
|
||||
Source string `form:"source" binding:"omitempty,gt=0"`
|
||||
Industry string `form:"industry" binding:"omitempty,gt=0"`
|
||||
Level string `form:"level" binding:"omitempty,gt=0"`
|
||||
Status int `form:"status" binding:"omitempty,oneof=1 2"`
|
||||
Creator int64 `form:"creator,omitempty" binding:"-"`
|
||||
Page Page
|
||||
}
|
||||
|
||||
type CustomerList struct {
|
||||
|
||||
Reference in New Issue
Block a user