Documentation ¶
Index ¶
- func AuthenticatedAccount(context *gin.Context, user *domain.Account) bool
- func NotConflictAccount(context *gin.Context, user *domain.Account) bool
- func RunAccountValidation(context *gin.Context, user *domain.Account, types []TypeAccount) bool
- func UniqueAccount(context *gin.Context, user *domain.Account) bool
- type TypeAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedAccount ¶
代表用户必须与当前登陆的用户一致
func NotConflictAccount ¶
表示一个用户的信息是无冲突的 “无冲突”是指该用户的敏感信息与其他用户不重合,譬如将一个注册用户的邮箱,修改成与另外一个已存在的注册用户一致的值,这便是冲突
func RunAccountValidation ¶
Types ¶
type TypeAccount ¶
type TypeAccount int
const ( NotConflict TypeAccount = iota Authenticated Unique )
Click to show internal directories.
Click to hide internal directories.