发布地图列表查询参数增加厂商
This commit is contained in:
parent
def097d591
commit
126bd860fe
@ -14,9 +14,10 @@ type PublishedGiReqDto struct {
|
|||||||
|
|
||||||
type PublishedGiListReqDto struct {
|
type PublishedGiListReqDto struct {
|
||||||
Name string `json:"name" form:"name"`
|
Name string `json:"name" form:"name"`
|
||||||
|
Type int32 `json:"type" form:"type"`
|
||||||
|
Category string `json:"category" form:"category"`
|
||||||
|
|
||||||
Time dto.JsonTime `json:"time" form:"time" time_format:"2006-01-02 15:04:05"`
|
Time dto.JsonTime `json:"time" form:"time" time_format:"2006-01-02 15:04:05"`
|
||||||
Type int32 `json:"type" form:"type"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PublishReqDto struct {
|
type PublishReqDto struct {
|
||||||
|
@ -36,6 +36,9 @@ func ListQueryPublishedGi(req *publishedGi.PublishedGiListReqDto) []*publishedGi
|
|||||||
if req.Type != 0 {
|
if req.Type != 0 {
|
||||||
where = where.Where(dbquery.PublishedGi.Type.Eq(req.Type))
|
where = where.Where(dbquery.PublishedGi.Type.Eq(req.Type))
|
||||||
}
|
}
|
||||||
|
if req.Category != "" {
|
||||||
|
where = where.Where(dbquery.PublishedGi.Category.Eq(req.Category))
|
||||||
|
}
|
||||||
find, err := where.Debug().Find()
|
find, err := where.Debug().Find()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(dto.ErrorDto{Code: dto.DataOperationError, Message: err.Error()})
|
panic(dto.ErrorDto{Code: dto.DataOperationError, Message: err.Error()})
|
||||||
|
Loading…
Reference in New Issue
Block a user