package models import "time" type Role struct { tableName struct{} `pg:"role" comment:"角色"` Id int64 `pg:"pk:id" comment:"ID"` Name string `comment:"角色名称"` Type int `comment:"角色类型(0角色可删、1系统预置角色不可删)"` Description string `comment:"角色描述"` CompanyId int64 `comment:"公司ID"` CreatedAt time.Time `comment:"创建时间"` UpdatedAt time.Time `comment:"更新时间"` DeletedAt *time.Time `comment:"删除时间"` }