2024-11-01 17:47:33 +08:00
|
|
|
package model
|
|
|
|
|
2024-11-04 18:09:39 +08:00
|
|
|
// platform:module:class:action
|
|
|
|
// pro:*:*:*
|
|
|
|
// pro:content:*:*
|
|
|
|
// pro:content:secret_news:*
|
|
|
|
// pro:content:secret_news:upload
|
2024-11-01 17:53:47 +08:00
|
|
|
|
2024-11-01 17:47:33 +08:00
|
|
|
type Privilege struct {
|
|
|
|
CreatedAt int64 `json:"created_at" gorm:"column:created_at;autoCreateTime:milli"`
|
|
|
|
UpdatedAt int64 `json:"updated_at" gorm:"column:updated_at;autoUpdateTime:milli"`
|
|
|
|
DeletedAt int64 `json:"deleted_at" gorm:"index;column:deleted_at;default:0"`
|
|
|
|
Code string `json:"code" gorm:"column:code;primaryKey"`
|
|
|
|
Label string `json:"label" gorm:"column:label"`
|
|
|
|
Parent string `json:"parent" gorm:"column:parent"`
|
|
|
|
Scope string `json:"scope" gorm:"column:scope"`
|
|
|
|
}
|
2024-11-01 17:53:47 +08:00
|
|
|
|
2024-11-04 18:09:39 +08:00
|
|
|
func (p *Privilege) Validate() error {
|
|
|
|
return nil
|
2024-11-01 17:53:47 +08:00
|
|
|
}
|