Documentation ¶
Index ¶
- func CreateAccountByUsername(ctx context.Context, r *CreateAccountByUsernameReq) (*models.Account, error)
- func CreateAdminIfNotExist(ctx context.Context) (string, error)
- func GetAccountByAccountID(ctx context.Context, accountID types.SFID) (*models.Account, error)
- func UpdateAccountPassword(ctx context.Context, accountID types.SFID, password string) error
- func ValidateAccountByLogin(ctx context.Context, username, password string) (*models.Account, error)
- type CreateAccountByUsernameReq
- type UpdatePasswordReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccountByUsername ¶
func GetAccountByAccountID ¶
func UpdateAccountPassword ¶
Types ¶
type CreateAccountByUsernameReq ¶
type CreateAccountByUsernameReq struct {
Username string `json:"username"`
}
type UpdatePasswordReq ¶
type UpdatePasswordReq struct {
Password string `json:"password"`
}
Click to show internal directories.
Click to hide internal directories.