2022-08-30 04:03:02 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "go.mongodb.org/mongo-driver/mongo/options"
|
|
|
|
|
|
|
|
type FindWithCondition struct {
|
|
|
|
Conditions interface{} `json:"conditions"`
|
|
|
|
Opts []*options.FindOptions `json:"opts"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type FindOneCondition struct {
|
|
|
|
Conditions interface{} `json:"conditions"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DistinctWithField struct {
|
|
|
|
Conditions interface{} `json:"conditions"`
|
|
|
|
Filed string `json:"filed"`
|
|
|
|
}
|
2022-08-31 03:53:51 +00:00
|
|
|
|
|
|
|
type ActionBy struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
2022-10-26 10:56:15 +00:00
|
|
|
|
|
|
|
// ClickAction ...
|
|
|
|
type ClickAction struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
2022-10-27 04:11:45 +00:00
|
|
|
|
|
|
|
// RequestCondition ...
|
|
|
|
type RequestCondition struct {
|
|
|
|
Code int `json:"code"`
|
|
|
|
Codes []int `json:"codes"`
|
|
|
|
DistrictCode int `json:"districtCode"`
|
|
|
|
ProvinceCode int `json:"provinceCode"`
|
|
|
|
|
2022-11-17 09:49:02 +00:00
|
|
|
Slug string `json:"slug"`
|
|
|
|
OldSlug string `json:"oldSlug"`
|
|
|
|
|
2022-11-17 10:19:04 +00:00
|
|
|
Slugs []string `json:"slugs"`
|
|
|
|
OldSlugs []string `json:"oldSlugs"`
|
|
|
|
|
|
|
|
DistrictSlug string `json:"districtSlug"`
|
|
|
|
ProvinceSlug string `json:"provinceSlug"`
|
2022-10-27 04:11:45 +00:00
|
|
|
|
|
|
|
Keyword string `json:"keyword"`
|
|
|
|
Region string `json:"region"`
|
2022-11-07 08:48:28 +00:00
|
|
|
|
2022-11-07 09:04:12 +00:00
|
|
|
Page int64 `json:"page"`
|
|
|
|
Limit int64 `json:"limit"`
|
2022-10-27 04:11:45 +00:00
|
|
|
}
|