You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package models
|
|
|
|
|
|
|
|
type RoleGet struct {
|
|
|
|
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@role_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RolePatch struct {
|
|
|
|
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@role_id"`
|
|
|
|
Name *string `json:"name" parse:"json"`
|
|
|
|
Des *string `json:"des" parse:"json"`
|
|
|
|
AppID *string `json:"app_id" gorm:"index;type:varchar(32)" parse:"json"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RoleDelete struct {
|
|
|
|
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@role_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RolePost struct {
|
|
|
|
Name string `json:"name" parse:"json"`
|
|
|
|
Des string `json:"des" parse:"json"`
|
|
|
|
AppID string `json:"app_id" gorm:"index;type:varchar(32)" parse:"json"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RoleList struct {
|
|
|
|
Name *string `json:"name" parse:"query"`
|
|
|
|
}
|