schema

package
v0.0.0-...-7f5b3d9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigurationCategoryMockTime mock time分类
	ConfigurationCategoryMockTime = "mockTime"
	// ConfigurationCategoryBlockIP block ip分类
	ConfigurationCategoryBlockIP = "blockIP"
	// ConfigurationCategorySignedKey signed key分类
	ConfigurationCategorySignedKey = "signedKey"
	// ConfigurationCategoryRouterConcurrency router concurrency分类
	ConfigurationCategoryRouterConcurrency = "routerConcurrency"
	// ConfigurationCategoryRouter router分类
	ConfigurationCategoryRouter = "router"
	// ConfigurationCategoryRequestConcurrency request concurrency
	ConfigurationCategoryRequestConcurrency = "requestConcurrency"
	// ConfigurationCategoryEmail 邮箱配置
	ConfigurationCategoryEmail = "email"
	// ConfigurationHTTPServerInterceptor http服务的拦截配置
	ConfigurationHTTPServerInterceptor = "httpServerInterceptor"
	// ConfigurationHTTPRequestInterceptor http请求拦截配置
	ConfigurationHTTPRequestInterceptor = "httpRequestInterceptor"
)
View Source
const (
	// UserRoleNormal normal user
	UserRoleNormal = "normal"
	// UserRoleSu super user
	UserRoleSu = "su"
	// UserRoleAdmin admin user
	UserRoleAdmin = "admin"
)

用户角色

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ent.Schema
}

Configuration holds the schema definition for the Configuration entity.

func (Configuration) Edges

func (Configuration) Edges() []ent.Edge

Edges of the Configuration.

func (Configuration) Fields

func (Configuration) Fields() []ent.Field

Fields 配置信息的相关字段

func (Configuration) Indexes

func (Configuration) Indexes() []ent.Index

Indexes 配置表索引

func (Configuration) Mixin

func (Configuration) Mixin() []ent.Mixin

Mixin 配置信息的mixin

type File

type File struct {
	ent.Schema
}

func (File) Fields

func (File) Fields() []ent.Field

Fields 文件表的字段配置

func (File) Indexes

func (File) Indexes() []ent.Index

Indexes 文件表索引

func (File) Mixin

func (File) Mixin() []ent.Mixin

Mixin 文件表的mixin

type Status

type Status int8
const (
	// 状态启用
	StatusEnabled Status = iota + 1
	// 状态禁用
	StatusDisabled
)

func (Status) Int8

func (status Status) Int8() int8

ToInt8 转换为int8

func (Status) String

func (status Status) String() string

String 转换为string

type StatusMixin

type StatusMixin struct {
	mixin.Schema
}

StatusMixin 状态的schema

func (StatusMixin) Fields

func (StatusMixin) Fields() []ent.Field

Fields 公共的status的字段

type TimeMixin

type TimeMixin struct {
	mixin.Schema
}

TimeMixin 公共的时间schema

func (TimeMixin) Fields

func (TimeMixin) Fields() []ent.Field

Fields 公共时间schema的字段,包括创建于与更新于

func (TimeMixin) Indexes

func (TimeMixin) Indexes() []ent.Index

Indexes 公共时间字段索引

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

func (User) Fields() []ent.Field

Fields 用户表的字段配置

func (User) Indexes

func (User) Indexes() []ent.Index

Indexes 用户表索引

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin 用户表的mixin

type UserLogin

type UserLogin struct {
	ent.Schema
}

UserLogin holds the schema definition for the UserLogin entity.

func (UserLogin) Edges

func (UserLogin) Edges() []ent.Edge

Edges of the UserLogin.

func (UserLogin) Fields

func (UserLogin) Fields() []ent.Field

Fields 用户登录表的相关字段

func (UserLogin) Indexes

func (UserLogin) Indexes() []ent.Index

Indexes 用户登录表索引

func (UserLogin) Mixin

func (UserLogin) Mixin() []ent.Mixin

Mixin 用户登录记录的mixin

type UserRoleInfo

type UserRoleInfo struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

UserRoleInfo 用户角色信息

func GetUserRoleList

func GetUserRoleList() []*UserRoleInfo

GetUserRoleList 获取用户角色列表

Jump to

Keyboard shortcuts

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