forms

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminMenuDeleteForm

type AdminMenuDeleteForm struct {
	Id int `form:"id" json:"id" binding:"required"`
}

type AdminMenuDetailForm

type AdminMenuDetailForm AdminMenuDeleteForm

type AdminMenuListResult

type AdminMenuListResult struct {
	Id        string `json:"id"`
	ParentId  string `json:"parent_id"`
	Order     string `json:"order"`
	Type      string `json:"type"`
	ViewPath  string `json:"view_path"`
	IsDefault string `json:"is_default"`
	KeepAlive string `json:"keep_alive"`
	Name      string `json:"name"`
	Title     string `json:"title"`
	Icon      string `json:"icon"`
	Uri       string `json:"uri"`
	IsShow    string `json:"is_show"`
}

func (AdminMenuListResult) GetId

func (m AdminMenuListResult) GetId() string

func (AdminMenuListResult) GetParentId

func (m AdminMenuListResult) GetParentId() string

func (AdminMenuListResult) IsRoot

func (m AdminMenuListResult) IsRoot() bool

type AdminMenuListResults

type AdminMenuListResults []AdminMenuListResult

func (AdminMenuListResults) ConvertToNodeArray

func (s AdminMenuListResults) ConvertToNodeArray() (nodes []tree.Node)

ConvertToNodeArray 将当前数组转换成父类 Node 接口 数组

type AdminMenuOptionsResult

type AdminMenuOptionsResult struct {
	Id             string                      `json:"id"`
	ParentId       string                      `json:"parent_id"`
	Title          string                      `json:"title"`
	PermissionList []AdminMenuPermissionResult `json:"permission_list" gorm:"foreignKey:Group;references:Id"`
}

func (AdminMenuOptionsResult) GetId

func (m AdminMenuOptionsResult) GetId() string

func (AdminMenuOptionsResult) GetParentId

func (m AdminMenuOptionsResult) GetParentId() string

func (AdminMenuOptionsResult) IsRoot

func (m AdminMenuOptionsResult) IsRoot() bool

type AdminMenuOptionsResults

type AdminMenuOptionsResults []AdminMenuOptionsResult

func (AdminMenuOptionsResults) ConvertToNodeArray

func (s AdminMenuOptionsResults) ConvertToNodeArray() (nodes []tree.Node)

ConvertToNodeArray 将当前数组转换成父类 Node 接口 数组

type AdminMenuPermissionResult

type AdminMenuPermissionResult struct {
	Id    string `json:"id"`
	Group string `json:"group"`
	Name  string `json:"name"`
}

type AdminMenuResult

type AdminMenuResult struct {
	Id        string `json:"id"`
	ParentId  string `json:"parent_id"`
	Order     int    `json:"order"`
	Type      string `json:"type"`
	ViewPath  string `json:"view_path"`
	IsDefault string `json:"is_default"`
	KeepAlive string `json:"keep_alive"`
	Name      string `json:"name"`
	Title     string `json:"title"`
	Icon      string `json:"icon"`
	Uri       string `json:"uri"`
	IsShow    string `json:"is_show"`
}

type AdminMenuStoreForm

type AdminMenuStoreForm struct {
	Id        int    `form:"id" json:"id"`
	Type      string `form:"type" json:"type"`
	ViewPath  string `json:"view_path" json:"view_path"`
	IsDefault string `json:"is_default" json:"is_default"`
	KeepAlive string `json:"keep_alive" json:"keep_alive"`
	Name      string `json:"name" json:"name"`
	ParentId  string `form:"parent_id" json:"parent_id"`
	Order     int    `form:"order" json:"order"`
	Title     string `form:"title" json:"title" binding:"required"`
	Icon      string `form:"icon" json:"icon"`
	Uri       string `form:"uri" json:"uri"`
	IsShow    string `form:"is_show" json:"is_show" binding:"required"`
}

type AdminPermissionDetail

type AdminPermissionDetail struct {
	Id         string             `json:"id"`
	Slug       string             `json:"slug"`
	Name       string             `json:"name"`
	Group      string             `json:"group"`
	HttpPath   datatypes.Args     `json:"http_path"`
	HttpMethod datatypes.Args     `json:"http_method"`
	HttpAuth   string             `json:"http_auth"`
	CreatedAt  datatypes.DateTime `json:"created_at"`
	UpdatedAt  datatypes.DateTime `json:"updated_at"`
}

type AdminPermissionDetailResult

type AdminPermissionDetailResult struct {
	AdminPermissionDetail
	UserList []string `json:"user_list"`
}

type AdminPermissionOptionsResult

type AdminPermissionOptionsResult struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Group string `json:"group"`
}

type AdminPermissionStoreForm

type AdminPermissionStoreForm struct {
	Id         string   `form:"id" json:"id"`
	Slug       string   `form:"slug" json:"slug" binding:"required"`
	Name       string   `form:"name"  json:"name" binding:"required"`
	Group      string   `form:"group" json:"group" binding:"required"`
	HttpMethod []string `form:"http_method" json:"http_method"`
	HttpPath   string   `form:"http_path" json:"http_path" binding:"required"`
	HttpAuth   string   `form:"http_auth" json:"http_auth" binding:"required"`
}

type AdminPermissionsDeleteForm

type AdminPermissionsDeleteForm struct {
	Id int `form:"id" binding:"required"`
}

type AdminPermissionsInfoForm

type AdminPermissionsInfoForm struct {
	Id string `form:"id" json:"id" binding:"required"`
}

type AdminPermissionsInfoResult

type AdminPermissionsInfoResult struct {
	Id         string         `json:"id"`
	Name       string         `json:"name"`
	Slug       string         `json:"slug"`
	Group      string         `json:"group"`
	HttpMethod datatypes.Args `json:"http_method"`
	HttpPath   string         `json:"http_path"`
	HttpAuth   string         `json:"http_auth"`
}

type AdminPermissionsListResult

type AdminPermissionsListResult struct {
	Id         string             `json:"id"`
	Name       string             `json:"name"`
	Slug       string             `json:"slug"`
	Group      string             `json:"group"`
	HttpMethod datatypes.Args     `json:"http_method"`
	HttpPath   datatypes.Args     `json:"http_path"`
	HttpAuth   string             `json:"http_auth"`
	CreatedAt  datatypes.DateTime `json:"created_at"`
	UpdatedAt  datatypes.DateTime `json:"updated_at"`
}

type AdminRoleDeleteForm

type AdminRoleDeleteForm struct {
	Id string `form:"id" binding:"required"`
}

type AdminRoleDetail

type AdminRoleDetail struct {
	Id        string             `json:"id"`
	Slug      string             `json:"slug"`
	Name      string             `json:"name"`
	CreatedAt datatypes.DateTime `json:"created_at"`
	UpdatedAt datatypes.DateTime `json:"updated_at"`
}

type AdminRoleDetailResult

type AdminRoleDetailResult struct {
	AdminRoleDetail
	MenuList       []string `json:"menu_list"`
	PermissionList []string `json:"permission_list"`
	UserList       []string `json:"user_list"`
}

type AdminRoleInfoForm

type AdminRoleInfoForm struct {
	Id string `form:"id" binding:"required"`
}

type AdminRoleInfoResult

type AdminRoleInfoResult struct {
	Id             string   `json:"id"`
	Slug           string   `json:"slug"`
	Name           string   `json:"name"`
	MenuList       []string `json:"menu_list"`
	PermissionList []string `json:"permission_list"`
}

type AdminRoleListForm

type AdminRoleListForm struct {
	Name string `form:"name"`
	Slug string `form:"slug"`
}

AdminRoleListForm 角色列表请求参数

type AdminRoleListResult

type AdminRoleListResult struct {
	Id        string                `json:"id"`
	Name      string                `json:"name"`
	Slug      string                `json:"slug"`
	UserList  []adminRoleUserResult `json:"user_list" gorm:"foreignKey:RoleId"`
	CreatedAt datatypes.DateTime    `json:"created_at"`
	UpdatedAt datatypes.DateTime    `json:"updated_at"`
}

type AdminRoleOptionsResult

type AdminRoleOptionsResult struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type AdminRoleStoreForm

type AdminRoleStoreForm struct {
	Id             string   `form:"id" json:"id"`
	Slug           string   `form:"slug" json:"slug" binding:"required"`
	Name           string   `form:"name" json:"name" binding:"required"`
	MenuList       []string `form:"menu_list" json:"menu_list" binding:"gt=0"`
	PermissionList []string `form:"permission_list" json:"permission_list" binding:"gt=0"`
}

type AdminUserAuthInfoForm

type AdminUserAuthInfoForm struct {
	Id string `form:"id" binding:"required"`
}

type AdminUserAuthInfoResult

type AdminUserAuthInfoResult struct {
	Id             string   `json:"id"`
	Name           string   `json:"name"`
	RoleList       []string `json:"role_list"`
	PermissionList []string `json:"permission_list"`
}

type AdminUserAuthStoreForm

type AdminUserAuthStoreForm struct {
	Id             string   `form:"id" json:"id" binding:"required"`
	RoleList       []string `form:"role_list" json:"role_list"`
	PermissionList []string `form:"permission_list" json:"permission_list"`
}

type AdminUserListResult

type AdminUserListResult struct {
	Id        int64                  `json:"id"`
	Username  string                 `json:"username"`
	Name      string                 `json:"name"`
	CreatedAt datatypes.DateTime     `json:"created_at"`
	UpdatedAt datatypes.DateTime     `json:"updated_at"`
	RoleList  []AdminUserRolesResult `json:"role_list" gorm:"foreignKey:UserId;references:Id"`
}

type AdminUserMenuForm

type AdminUserMenuForm struct {
	UserId int `form:"user_id" binding:"required"`
}

type AdminUserOptionResult

type AdminUserOptionResult struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type AdminUserRolesResult

type AdminUserRolesResult struct {
	UserId   string `json:"user_id"`
	RoleName string `json:"role_name"`
}

Jump to

Keyboard shortcuts

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