models

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCasbinRule

type AdminCasbinRule struct {
	Id    int    `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	Ptype string `gorm:"column:ptype;type:varchar(100)" json:"ptype"`
	V0    string `gorm:"column:v0;type:varchar(100)" json:"v0"`
	V1    string `gorm:"column:v1;type:varchar(100)" json:"v1"`
	V2    string `gorm:"column:v2;type:varchar(100)" json:"v2"`
	V3    string `gorm:"column:v3;type:varchar(100)" json:"v3"`
	V4    string `gorm:"column:v4;type:varchar(100)" json:"v4"`
	V5    string `gorm:"column:v5;type:varchar(100)" json:"v5"`
	V6    string `gorm:"column:v6;type:varchar(25)" json:"v6"`
	V7    string `gorm:"column:v7;type:varchar(25)" json:"v7"`
}

func (AdminCasbinRule) TableName

func (AdminCasbinRule) TableName() string

type AdminMenu

type AdminMenu struct {
	Id        int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	ParentId  int       `gorm:"column:parent_id;type:int(11) unsigned;default:0;not null" json:"parent_id"` // 父级ID
	Order     int       `gorm:"column:order;type:int(11);default:0;not null" json:"order"`                  // 排序
	Title     string    `gorm:"column:title;type:varchar(50);not null" json:"title"`                        // 菜单标题
	Type      int       `gorm:"column:type;type:tinyint(2);default:0;not null" json:"type"`                 // 类型 1分组 2 菜单 3 按钮
	ViewPath  string    `gorm:"column:view_path;type:varchar(100);default:" json:"view_path"`               // 组件地址
	KeepAlive int       `gorm:"column:keep_alive;type:tinyint(2);default:0;not null" json:"keep_alive"`     // 前端页面缓存
	Icon      string    `gorm:"column:icon;type:varchar(50);default:" json:"icon"`                          // 图标
	Name      string    `gorm:"column:name;type:varchar(50);default:;not null" json:"name"`                 // 前端路由名称
	Uri       string    `gorm:"column:uri;type:varchar(50);default:" json:"uri"`                            // 页面地址
	IsShow    int       `gorm:"column:is_show;type:tinyint(2);default:0;not null" json:"is_show"`           // 是否在菜单显示
	IsDefault int       `gorm:"column:is_default;type:tinyint(2);default:0;not null" json:"is_default"`     // 默认页面
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminMenu) TableName

func (AdminMenu) TableName() string

type AdminPermissions

type AdminPermissions struct {
	Id         int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	Name       string    `gorm:"column:name;type:varchar(50);not null" json:"name"`
	Slug       string    `gorm:"column:slug;type:varchar(50);not null" json:"slug"`
	Group      int       `gorm:"column:group;type:int(11) unsigned;default:0;not null" json:"group"`
	HttpMethod string    `gorm:"column:http_method;type:varchar(255)" json:"http_method"`
	HttpPath   string    `gorm:"column:http_path;type:text" json:"http_path"`
	HttpAuth   string    `gorm:"column:http_auth;type:varchar(10)" json:"http_auth"`
	CreatedAt  time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt  time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminPermissions) TableName

func (AdminPermissions) TableName() string

type AdminRoleMenu

type AdminRoleMenu struct {
	Id        int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	RoleId    int       `gorm:"column:role_id;type:int(11) unsigned;not null" json:"role_id"`
	MenuId    int       `gorm:"column:menu_id;type:int(11) unsigned;not null" json:"menu_id"`
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminRoleMenu) TableName

func (AdminRoleMenu) TableName() string

type AdminRolePermissions

type AdminRolePermissions struct {
	Id           int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	RoleId       int       `gorm:"column:role_id;type:int(11) unsigned;not null" json:"role_id"`
	PermissionId int       `gorm:"column:permission_id;type:int(11) unsigned;not null" json:"permission_id"`
	CreatedAt    time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt    time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminRolePermissions) TableName

func (AdminRolePermissions) TableName() string

type AdminRoleUsers

type AdminRoleUsers struct {
	Id        int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	RoleId    int       `gorm:"column:role_id;type:int(11) unsigned;not null" json:"role_id"`
	UserId    int       `gorm:"column:user_id;type:int(11) unsigned;not null" json:"user_id"`
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminRoleUsers) TableName

func (AdminRoleUsers) TableName() string

type AdminRoles

type AdminRoles struct {
	Id        int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	Name      string    `gorm:"column:name;type:varchar(50);not null" json:"name"`
	Slug      string    `gorm:"column:slug;type:varchar(50);not null" json:"slug"`
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminRoles) TableName

func (AdminRoles) TableName() string

type AdminUserPermissions

type AdminUserPermissions struct {
	Id           int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	UserId       int       `gorm:"column:user_id;type:int(11);not null" json:"user_id"`
	PermissionId int       `gorm:"column:permission_id;type:int(11);not null" json:"permission_id"`
	CreatedAt    time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt    time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminUserPermissions) TableName

func (AdminUserPermissions) TableName() string

type AdminUsers

type AdminUsers struct {
	Id            int       `gorm:"column:id;primaryKey;type:int(11) unsigned;not null" json:"id"`
	Username      string    `gorm:"column:username;type:varchar(190);not null" json:"username"`
	Password      string    `gorm:"column:password;type:varchar(60);not null" json:"password"`
	Name          string    `gorm:"column:name;type:varchar(255);not null" json:"name"`
	Avatar        string    `gorm:"column:avatar;type:varchar(255)" json:"avatar"`
	RememberToken string    `gorm:"column:remember_token;type:varchar(100)" json:"remember_token"`
	CreatedAt     time.Time `gorm:"column:created_at;type:timestamp;not null" json:"created_at"`
	UpdatedAt     time.Time `gorm:"column:updated_at;type:timestamp;not null" json:"updated_at"`
}

func (AdminUsers) TableName

func (AdminUsers) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL