schema

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuDTO struct {
	ParentId int64  `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	Code     string `gorm:"column:code" json:"Code" form:"Code" comment:"编号"`
	Name     string `gorm:"column:name" json:"Name" form:"Name" comment:"名称"`
	Alias    string `gorm:"column:alias" json:"Alias" form:"Alias" comment:"别名"`
	Path     string `gorm:"column:path" json:"Path" form:"Path" comment:"路径"`
	Source   string `gorm:"column:source" json:"Source" form:"Source" comment:"资源"`
	Category int    `gorm:"column:category" json:"Category" form:"Category" comment:"菜单类型"`
	Action   int    `gorm:"column:action" json:"Action" form:"Action" comment:"按钮类型"`
	IsOpen   int    `gorm:"column:is_open" json:"IsOpen" form:"IsOpen" comment:"打开新页面"`
	Status   int    `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
	Sort     int    `gorm:"column:sort" json:"Sort" form:"Sort" comment:"排序"`
}
type MenuVO struct {
	Id          int64               `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	ParentId    int64               `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	Code        string              `gorm:"column:code" json:"Code" form:"Code" comment:"编号"`
	Name        string              `gorm:"column:name" json:"Name" form:"Name" comment:"名称"`
	Alias       string              `gorm:"column:alias" json:"Alias" form:"Alias" comment:"别名"`
	Path        string              `gorm:"column:path" json:"Path" form:"Path" comment:"路径"`
	Source      string              `gorm:"column:source" json:"Source" form:"Source" comment:"资源"`
	Category    int                 `gorm:"column:category" json:"Category" form:"Category" comment:"菜单类型"`
	Action      int                 `gorm:"column:action" json:"Action" form:"Action" comment:"按钮类型"`
	IsOpen      int                 `gorm:"column:is_open" json:"IsOpen" form:"IsOpen" comment:"打开新页面"`
	Status      int                 `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
	Sort        int                 `gorm:"column:sort" json:"Sort" form:"Sort" comment:"排序"`
	HasChildren bool                `gorm:"column:_" json:"hasChildren"`
	Children    []*model.MenuEntity `gorm:"column:_" json:"children"`
}
func (c MenuVO) GetDetailVO() interface{}
func (c MenuVO) GetListVO() interface{}

type RoleDTO

type RoleDTO struct {
	ParentId  int64  `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	RoleName  string `gorm:"column:role_name" json:"RoleName" form:"RoleName" comment:"角色名"`
	RoleAlias string `gorm:"column:role_alias" json:"RoleAlias" form:"RoleAlias" comment:"角色别名"`
	MenuIds   string `gorm:"column:menu_ids" json:"MenuIds" form:"MenuIds" comment:"MenuIds"`
	Status    int    `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
	Sort      int    `gorm:"column:sort" json:"Sort" form:"Sort" comment:"排序"`
}

func (RoleDTO) GetBulkUpdate

func (c RoleDTO) GetBulkUpdate() bool

func (RoleDTO) GetCreateDTO

func (c RoleDTO) GetCreateDTO() interface{}

func (RoleDTO) GetKeys

func (c RoleDTO) GetKeys() []string

func (RoleDTO) GetQueryDTO

func (c RoleDTO) GetQueryDTO() interface{}

type RoleVO

type RoleVO struct {
	Id        int64               `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	ParentId  int64               `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	RoleName  string              `gorm:"column:role_name" json:"RoleName" form:"RoleName" comment:"角色名"`
	RoleAlias string              `gorm:"column:role_alias" json:"RoleAlias" form:"RoleAlias" comment:"角色别名"`
	MenuIds   string              `gorm:"column:menu_ids" json:"MenuIds" form:"MenuIds" comment:"MenuIds"`
	Status    int                 `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
	Sort      int                 `gorm:"column:sort" json:"Sort" form:"Sort" comment:"排序"`
	Children  []*model.RoleEntity `gorm:"foreignKey:ParentId" json:"Children"`
}

func (RoleVO) GetDetailVO

func (c RoleVO) GetDetailVO() interface{}

func (RoleVO) GetListVO

func (c RoleVO) GetListVO() interface{}

type UserCreateDTO

type UserCreateDTO struct {
	//ParentId int64  `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	Name string `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	//UserType int    `gorm:"column:user_type" json:"UserType" form:"UserType" comment:"UserType"`
	Account  string `gorm:"column:account" json:"Account" form:"Account" comment:"Account"`
	Password string `gorm:"column:password" json:"Password" form:"Password" comment:"Password"`
	RealName string `gorm:"column:real_name" json:"RealName" form:"RealName" comment:"RealName"`
	Avatar   string `gorm:"column:avatar" json:"Avatar" form:"Avatar" comment:"Avatar"`
	Email    string `gorm:"column:email" json:"Email" form:"Email" comment:"Email"`
	Phone    string `gorm:"column:phone" json:"Phone" form:"Phone" comment:"Phone"`
	Birthday string `gorm:"column:birthday" json:"Birthday" form:"Birthday" comment:"Birthday"`
	Sex      int    `gorm:"column:sex" json:"Sex" form:"Sex" comment:"Sex"`
}

type UserUpdateDTO

type UserUpdateDTO struct {
	//ParentId int64  `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"`
	Name     string `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	UserType int    `gorm:"column:user_type" json:"UserType" form:"UserType" comment:"UserType"`
	Account  string `gorm:"column:account" json:"Account" form:"Account" comment:"Account"`
	//Password string `gorm:"column:password" json:"Password" form:"Password" comment:"Password"`
	RealName string `gorm:"column:real_name" json:"RealName" form:"RealName" comment:"RealName"`
	Avatar   string `gorm:"column:avatar" json:"Avatar" form:"Avatar" comment:"Avatar"`
	Email    string `gorm:"column:email" json:"Email" form:"Email" comment:"Email"`
	Phone    string `gorm:"column:phone" json:"Phone" form:"Phone" comment:"Phone"`
	Birthday string `gorm:"column:birthday" json:"Birthday" form:"Birthday" comment:"Birthday"`
	Sex      int    `gorm:"column:sex" json:"Sex" form:"Sex" comment:"Sex"`
}

type UserVO

type UserVO struct {
	Id        int64              `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	Name      string             `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	UserType  int                `gorm:"column:user_type" json:"UserType" form:"UserType" comment:"UserType"`
	Account   string             `gorm:"column:account" json:"Account" form:"Account" comment:"Account"`
	Password  string             `gorm:"column:password" json:"Password" form:"Password" comment:"Password"`
	RealName  string             `gorm:"column:real_name" json:"RealName" form:"RealName" comment:"RealName"`
	Avatar    string             `gorm:"column:avatar" json:"Avatar" form:"Avatar" comment:"Avatar"`
	Email     string             `gorm:"column:email" json:"Email" form:"Email" comment:"Email"`
	Phone     string             `gorm:"column:phone" json:"Phone" form:"Phone" comment:"Phone"`
	Birthday  string             `gorm:"column:birthday" json:"Birthday" form:"Birthday" comment:"Birthday"`
	Sex       int                `gorm:"column:sex" json:"Sex" form:"Sex" comment:"Sex"`
	RoleIds   string             `gorm:"column:role_ids" json:"RoleIds" form:"RoleIds" comment:"RoleIds"`
	DeptIds   string             `gorm:"column:dept_ids" json:"DeptIds" form:"DeptIds" comment:"DeptIds"`
	PostIds   string             `gorm:"column:post_ids" json:"PostIds" form:"PostIds" comment:"PostIds"`
	Status    int                `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
	Tags      string             `gorm:"column:tags" json:"Tags" form:"Tags" comment:"Tags"`
	CreatedAt base.ISO8601Time   `gorm:"column:created_at" json:"CreatedAt" form:"CreatedAt" comment:"CreatedAt"`
	UpdatedAt base.ISO8601Time   `gorm:"column:updated_at" json:"UpdatedAt" form:"UpdatedAt" comment:"UpdatedAt"`
	Roles     []model.RoleEntity `gorm:"many2many:user_role;"`
	Children  []model.UserEntity `gorm:"foreignKey:ParentId" json:"Children"`
}

func (UserVO) GetDetailVO

func (m UserVO) GetDetailVO() interface{}

func (UserVO) GetListVO

func (m UserVO) GetListVO() interface{}

Jump to

Keyboard shortcuts

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