package request import "time" // Paging common input parameter structure type PageInfo struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"page_size" form:"page_size"` // 每页大小 } // Find by id structure type GetById struct { ID float64 `json:"id" form:"id"` // 主键ID } type IdReq struct { ID uint `json:"id" form:"id"` //id } type IdsReq struct { Ids []uint `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:"id"` ID string `json:"id" form:"id"` Remark string `json:"remark" form:"remark"` } type StatusParamInt struct { Status int `json:"status" form:"id"` //状态 1:待审核 2:审核通过 3:审核不通过 ID uint `json:"id" form:"id"` Remark string `json:"remark" form:"remark"` //审核理由 } 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 Chart struct { Unit string `json:"unit" form:"unit"` //单位 取值:day:天 week:周 month:月 area:时间段 Value string `json:"value" form:"value"` //取值unit=day(0:今天 1:今天+1 -1:今天-1)week、month同day area:(2022-09-22|2022-10-22) Type int `json:"type" form:"type"` //1:个数 2:金额 } type Analyses struct { Format string // StartTime time.Time EndTime time.Time } type TimeZoneStruct struct { TimeZone *time.Location `json:"-"` } type ListCourier struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"page_size" form:"page_size"` // 每页大小 Name string `json:"name" form:"name"` }