50 lines
1.8 KiB
Go
50 lines
1.8 KiB
Go
package dto
|
|
|
|
type DictionaryRequest struct {
|
|
ID uint `json:"ID" form:"ID"`
|
|
Name string `json:"name" form:"name"`
|
|
Type string `json:"type" form:"type"`
|
|
Status *bool `json:"status" form:"status"`
|
|
Description string `json:"desc" form:"desc"`
|
|
ParentID *uint `json:"parentID" form:"parentID"`
|
|
}
|
|
type DictionaryDetailRequest struct {
|
|
ID uint `json:"ID" form:"ID"`
|
|
Label string `json:"label" form:"label"`
|
|
Value string `json:"value" form:"value"`
|
|
Extend string `json:"extend" form:"extend"`
|
|
Status *bool `json:"status" form:"status"`
|
|
Sort int `json:"sort" form:"sort"`
|
|
DictionaryID uint `json:"sysDictionaryID" form:"sysDictionaryID"`
|
|
ParentID *uint `json:"parentID" form:"parentID"`
|
|
Level int `json:"level"`
|
|
Path string `json:"path"`
|
|
}
|
|
type ImportDictionaryRequest struct {
|
|
JSON string `json:"json"`
|
|
}
|
|
type DictionaryDetailsByParentRequest struct {
|
|
DictionaryID uint `json:"sysDictionaryID" form:"sysDictionaryID" binding:"required"`
|
|
ParentID *uint `json:"parentID" form:"parentID"`
|
|
IncludeChildren bool `json:"includeChildren" form:"includeChildren"`
|
|
}
|
|
type SystemParameterRequest struct {
|
|
ID uint `json:"ID" form:"ID"`
|
|
Name string `json:"name" form:"name"`
|
|
Key string `json:"key" form:"key"`
|
|
Value string `json:"value" form:"value"`
|
|
Description string `json:"desc" form:"desc"`
|
|
}
|
|
type CreateAPITokenRequest struct {
|
|
UserID uint `json:"userId"`
|
|
AuthorityID uint `json:"authorityId"`
|
|
Days int `json:"days"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
type APITokenListRequest struct {
|
|
Page int `json:"page"`
|
|
PageSize int `json:"pageSize"`
|
|
UserID uint `json:"userId"`
|
|
Status *bool `json:"status"`
|
|
}
|