redis token

This commit is contained in:
zp
2024-01-15 17:30:07 +08:00
parent 00122cc66d
commit cb8ca55aba
28 changed files with 931 additions and 31 deletions

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// PermissionInfo is the golang structure for table permission_info.
type PermissionInfo struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"权限名称"`
Path string `json:"path" description:"路径"`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
DeletedAt *gtime.Time `json:"deletedAt" description:""`
}

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RoleInfo is the golang structure for table role_info.
type RoleInfo struct {
Id int `json:"id" description:""`
Name string `json:"name" description:"角色名称"`
Desc string `json:"desc" description:"描述"`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
DeletedAt *gtime.Time `json:"deletedAt" description:""`
}

View File

@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RolePermissionInfo is the golang structure for table role_permission_info.
type RolePermissionInfo struct {
Id int `json:"id" description:""`
RoleId int `json:"roleId" description:"角色id"`
PermissionId int `json:"permissionId" description:"权限id"`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
}

View File

@ -19,6 +19,8 @@ type Writer struct {
Qq string `json:"qq" description:""`
RealName string `json:"realName" description:"真名"`
IdNo string `json:"idNo" description:"身份证号"`
IsAdmin uint `json:"isAdmin" description:"是否是管理员"`
RoleIds string `json:"roleIds" description:"角色id"`
CreatedAt *gtime.Time `json:"createdAt" description:""`
UpdatedAt *gtime.Time `json:"updatedAt" description:""`
DeletedAt *gtime.Time `json:"deletedAt" description:""`