user

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	*frame.Taskline
}

func New

func New(t *frame.Taskline) *Component

func (*Component) CompName

func (this *Component) CompName() string

组件名称

func (*Component) Config

func (this *Component) Config() frame.ConfigInterface

配置信息

func (*Component) Models

func (this *Component) Models() []frame.ModelInterface

数据库模型

func (*Component) NewUser

func (this *Component) NewUser() *User

实例化user model

func (*Component) UserDomain

func (this *Component) UserDomain() *userDomain

type Config

type Config struct {
	Open    bool `name:"开启站点"`
	MaxUser int  `name:"最大用户数量"`
}

func (*Config) BeforeGet

func (this *Config) BeforeGet()

请求前

func (*Config) ConfigAlias

func (this *Config) ConfigAlias() string

配置别名

func (*Config) ConfigName

func (this *Config) ConfigName() string

配置名称

func (*Config) Default

func (this *Config) Default() frame.ConfigInterface

默认配置

func (*Config) Validate

func (this *Config) Validate() error

验证

type User added in v1.0.20

type User struct {
	Id          int       `xorm:"pk autoincr"`
	Username    string    `xorm:"varchar(255)"`
	CreatedAt   time.Time `xorm:"created"`
	frame.Model `xorm:"-"`
}

func (*User) PrimaryKey added in v1.0.20

func (this *User) PrimaryKey() any

Jump to

Keyboard shortcuts

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