You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.4 KiB

package request
import "time"
// Paging common input parameter structure
type PageInfo struct {
Page int `json:"page" form:"page"` // 页码
PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
}
// Find by id structure
type GetById struct {
ID float64 `json:"id" form:"id"` // 主键ID
}
type IdsReq struct {
Ids []int `json:"ids" form:"ids"`
}
type IdsStrReq struct {
Ids []string `json:"ids" form:"ids"`
}
type IdStrReq struct {
ID string `json:"id" form:"id"`
}
type StatusParam struct {
Status string `json:"status" form:"status"`
ID string `json:"id" form:"id"`
}
type IdReq struct {
ID uint `json:"id" form:"id"` //id
}
type IdsUReq struct {
Ids []int `json:"ids" form:"ids"`
}
type StatusParams struct {
Status string `json:"status"`
IdsStrReq
}
type StatusParamsInt struct {
Status int `json:"status"`
IdsStrReq
}
type ChannelId struct {
ChannelId string `json:"channelId" form:"channelId"`
}
type StructParams map[string]interface{}
// Get role by id structure
type GetAuthorityId struct {
AuthorityId uint // 角色ID
Appid string
}
type Empty struct{}
type TimeZoneStruct struct {
TimeZone *time.Location `json:"-"`
}
type StatusIntParam struct {
Status string `json:"status" form:"status"`
ID uint `json:"id" form:"id"`
}
type InfluencerSummaryListParam struct {
Uuid string `json:"uuid" form:"uuid"`
PageInfo
}