model

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasbinRule

type CasbinRule struct {
	Id    uint32 `json:"id" gorm:"column:id"`
	Ptype string `json:"ptype" gorm:"column:ptype"`
	V0    string `json:"v0" gorm:"column:v0"`
	V1    string `json:"v1" gorm:"column:v1"`
	V2    string `json:"v2" gorm:"column:v2"`
	V3    string `json:"v3" gorm:"column:v3"`
	V4    string `json:"v4" gorm:"column:v4"`
	V5    string `json:"v5" gorm:"column:v5"`
}

type Department

type Department struct {
	ParentId    uint32  `json:"parentId" gorm:"column:parent_id"`
	Name        string  `json:"name" gorm:"column:name"`
	Keyword     string  `json:"keyword" gorm:"column:keyword"`
	Description *string `json:"description" gorm:"column:description"`
	types.BaseModel
}

type DepartmentClosure

type DepartmentClosure struct {
	ID       uint32 `json:"id" gorm:"column:id"`
	Parent   uint32 `json:"parent" gorm:"column:parent"`
	Children uint32 `json:"children" gorm:"column:children"`
}

type Dictionary

type Dictionary struct {
	Keyword     string  `json:"keyword" gorm:"column:keyword"`
	Name        string  `json:"name" gorm:"column:name"`
	Description *string `json:"description" gorm:"column:description"`
	types.BaseModel
}

type DictionaryValue

type DictionaryValue struct {
	DictionaryId uint32      `json:"dictionaryId" gorm:"column:dictionary_id"`
	Label        string      `json:"label" gorm:"column:label"`
	Value        string      `json:"value" gorm:"column:value"`
	Status       *bool       `json:"status" gorm:"column:status"`
	Weight       *int32      `json:"weight" gorm:"column:weight"`
	Type         *string     `json:"type" gorm:"column:type"`
	Extra        *string     `json:"extra" gorm:"column:extra"`
	Description  *string     `json:"description" gorm:"column:description"`
	Dictionary   *Dictionary //fixed code
	types.BaseModel
}

type Job

type Job struct {
	Keyword     string  `json:"keyword" gorm:"column:keyword"`
	Name        string  `json:"name" gorm:"column:name"`
	Weight      *int32  `json:"weight" gorm:"column:weight"`
	Description *string `json:"description" gorm:"column:description"`
	types.BaseModel
}
type Menu struct {
	ParentId   uint32  `json:"parentId" gorm:"column:parent_id"`
	Title      string  `json:"title" gorm:"column:title"`
	Type       string  `json:"type" gorm:"column:type"`
	Keyword    *string `json:"keyword" gorm:"column:keyword"`
	Icon       *string `json:"icon" gorm:"column:icon"`
	Api        *string `json:"api" gorm:"column:api"`
	Method     *string `json:"method" gorm:"column:method"`
	Path       *string `json:"path" gorm:"column:path"`
	Permission *string `json:"permission" gorm:"column:permission"`
	Component  *string `json:"component" gorm:"column:component"`
	Redirect   *string `json:"redirect" gorm:"column:redirect"`
	Weight     *int32  `json:"weight" gorm:"column:weight"`
	IsHidden   *bool   `json:"isHidden" gorm:"column:is_hidden"`
	IsCache    *bool   `json:"isCache" gorm:"column:is_cache"`
	IsHome     *bool   `json:"isHome" gorm:"column:is_home"`
	IsAffix    *bool   `json:"isAffix" gorm:"column:is_affix"`
	types.BaseModel
}
type MenuApi struct {
	Api    string `json:"api"`
	Method string `json:"method"`
}
type MenuClosure struct {
	ID       uint32 `json:"id" gorm:"column:id"`
	Parent   uint32 `json:"parent" gorm:"column:parent"`
	Children uint32 `json:"children" gorm:"column:children"`
}

type Resource

type Resource struct {
	Keyword      string `json:"keyword" gorm:"column:keyword"`
	DepartmentId uint32 `json:"departmentIds" gorm:"column:department_id"`
	ResourceId   uint32 `json:"resourceId" gorm:"column:resource_id"`
}

type Role

type Role struct {
	ParentId      uint32  `json:"parentId" gorm:"column:parent_id"`
	Name          string  `json:"name" gorm:"column:name"`
	Keyword       string  `json:"keyword" gorm:"column:keyword"`
	Status        *bool   `json:"status" gorm:"column:status"`
	DataScope     string  `json:"dataScope" gorm:"column:data_scope"`
	DepartmentIds *string `json:"departmentIds" gorm:"column:department_ids"`
	Description   *string `json:"description" gorm:"column:description"`
	types.BaseModel
}

type RoleClosure

type RoleClosure struct {
	ID       uint32 `json:"id" gorm:"column:id"`
	Parent   uint32 `json:"parent" gorm:"column:parent"`
	Children uint32 `json:"children" gorm:"column:children"`
}

type RoleMenu

type RoleMenu struct {
	Id     uint32 `json:"id" gorm:"column:id"`
	MenuId uint32 `json:"menu_id" gorm:"column:menu_id"`
	RoleId uint32 `json:"role_id" gorm:"column:role_id"`
}

type User

type User struct {
	DepartmentId uint32      `json:"departmentId" gorm:"column:department_id"`
	RoleId       uint32      `json:"roleId" gorm:"column:role_id"`
	Name         string      `json:"name" gorm:"column:name"`
	Nickname     string      `json:"nickname" gorm:"column:nickname"`
	Gender       string      `json:"gender" gorm:"column:gender"`
	Avatar       *string     `json:"avatar" gorm:"column:avatar"`
	Phone        string      `json:"phone" gorm:"column:phone"`
	Email        string      `json:"email" gorm:"column:email"`
	Password     string      `json:"password" gorm:"column:password"`
	Status       *bool       `json:"status" gorm:"column:status"`
	Setting      *string     `json:"setting" gorm:"column:setting"`
	Token        *string     `json:"token" gorm:"column:token"`
	LoggedAt     int64       `json:"loggedAt" gorm:"column:logged_at"`
	UserJobs     []*UserJob  `json:"userJobs"`
	UserRoles    []*UserRole `json:"userRoles"`
	Roles        []*Role     `json:"roles" gorm:"many2many:user_role"` // fixed code
	Jobs         []*Job      `json:"jobs" gorm:"many2many:user_job"`
	Department   *Department `json:"department"`
	Role         *Role       `json:"role"`
	types.BaseModel
}

type UserJob

type UserJob struct {
	UserId uint32 `json:"userId" gorm:"column:user_id"`
	JobId  uint32 `json:"jobId" gorm:"column:job_id"`
}

type UserRole

type UserRole struct {
	UserId uint32 `json:"userId" gorm:"column:user_id"`
	RoleId uint32 `json:"roleId" gorm:"column:role_id"`
}

Jump to

Keyboard shortcuts

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