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.
22 lines
713 B
22 lines
713 B
package manage
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
)
|
|
|
|
type Role struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createAt"`
|
|
UpdatedAt formatime.Second `gorm:"updated_at" json:"updated_at"`
|
|
UserID uint `gorm:"user_id" json:"user_id"`
|
|
UserName string `gorm:"user_name" json:"user_name"`
|
|
IsDel int `gorm:"is_del" json:"is_del"`
|
|
Code string `gorm:"code" json:"code"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (*Role) TableName() string {
|
|
return "recook_manage_role"
|
|
}
|