user

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 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 AvatarService

type AvatarService struct {
	Size string `uri:"size" binding:"required,eq=l|eq=m|eq=s"`
}

AvatarService 头像服务

type ChangerNick

type ChangerNick struct {
	Nick string `json:"nick" binding:"required,min=1,max=255"`
}

ChangerNick 昵称更改服务

type DeleteWebAuthn

type DeleteWebAuthn struct {
	ID string `json:"id" binding:"required"`
}

DeleteWebAuthn 删除WebAuthn凭证

type Enable2FA

type Enable2FA struct {
	Code string `json:"code" binding:"required"`
}

Enable2FA 开启二步验证

type HomePage

type HomePage struct {
	Enabled bool `json:"status"`
}

HomePage 更改个人主页开关

type LoginInfo

type LoginInfo struct {
	UserName    string `form:"userName" json:"userName" binding:"required,email"`
	Password    string `form:"Password" json:"Password" binding:"required,min=4,max=64"`
	CaptchaCode string `json:"captchaCode"`
	Ticket      string `json:"ticket,omitempty"`
	Randstr     string `json:"randstr,omitempty"`
}

注册|登录|重置密码 账号信息

type PasswordChange

type PasswordChange struct {
	Old string `json:"old" binding:"required,min=4,max=64"`
	New string `json:"new" binding:"required,min=4,max=64"`
}

PasswordChange 更改密码

type PolicyChange

type PolicyChange struct {
	ID string `json:"id" binding:"required"`
}

PolicyChange 更改存储策略

type QQBind

type QQBind struct {
}

QQBind QQ互联服务

type SettingListService

type SettingListService struct {
	Page int `form:"page" binding:"required,min=1"`
}

SettingListService 通用设置列表服务

type SettingUpdateService

type SettingUpdateService struct {
	Option string `uri:"option" binding:"required,eq=nick|eq=theme|eq=homepage|eq=vip|eq=qq|eq=policy|eq=password|eq=2fa|eq=authn"`
}

SettingUpdateService 设定更改服务

type Settings

type Settings struct {
	Uid          uint                             `json:"uid"`
	QQ           bool                             `json:"qq"`
	HomePage     bool                             `json:"homepage"`
	TwoFactor    bool                             `json:"two_factor"`
	PreferTheme  string                           `json:"prefer_theme"`
	Themes       string                           `json:"themes"`
	GroupExpires *time.Time                       `json:"group_expires"`
	Authn        []serializer.WebAuthnCredentials `json:"authn"`
}

用户设定

type ThemeChose

type ThemeChose struct {
	Theme string `json:"theme" binding:"required,hexcolor|rgb|rgba|hsl"`
}

ThemeChose 主题选择

type UserLoginService

type UserLoginService struct {
	//TODO 细致调整验证规则
	UserName string `form:"userName" json:"userName" binding:"required,email"`
	Password string `form:"Password" json:"Password" binding:"required,min=4,max=64"`
}

UserLoginService 管理用户登录的服务

type UserRegisterService

type UserRegisterService struct {
	//TODO 细致调整验证规则
	UserName string `form:"userName" json:"userName" binding:"required,email"`
	Password string `form:"Password" json:"Password" binding:"required,min=4,max=64"`
}

UserRegisterService 管理用户注册的服务

type UserResetEmailService

type UserResetEmailService struct {
	UserName string `form:"userName" json:"userName" binding:"required,email"`
}

UserResetEmailService 发送密码重设邮件服务

type UserResetService

type UserResetService struct {
	Password string `form:"Password" json:"Password" binding:"required,min=4,max=64"`
	ID       string `json:"id" binding:"required"`
	Secret   string `json:"secret" binding:"required"`
}

UserResetService 密码重设服务

type VIPUnsubscribe

type VIPUnsubscribe struct {
}

VIPUnsubscribe 用户组解约服务

Jump to

Keyboard shortcuts

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