审查视图

pkg/infrastructure/pg/models/role.go 559 字节
1 2 3 4 5
package models

import "time"

type Role struct {
郑周 authored
6 7
	tableName   struct{}   `comment:"角色" pg:"role"`
	Id          int64      `comment:"ID" pg:"pk:id"`
8
	Name        string     `comment:"角色名称"`
郑周 authored
9
	Type        int        `comment:"角色类型(0角色可删、1系统预置角色不可删)" pg:",use_zero"`
10 11 12 13
	Description string     `comment:"角色描述"`
	CompanyId   int64      `comment:"公司ID"`
	CreatedAt   time.Time  `comment:"创建时间"`
	UpdatedAt   time.Time  `comment:"更新时间"`
郑周 authored
14
	DeletedAt   *time.Time `comment:"删除时间"`
15
}