user

package
v0.0.0-...-d817ec6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfile

func GetProfile(c *controller.Context) (res schema.Response)

func LoginWithUsername

func LoginWithUsername(c *controller.Context) (res schema.Response)

func SearchUser

func SearchUser(c *controller.Context) (res schema.Response)

func SignUpWithUsername

func SignUpWithUsername(c *controller.Context) (res schema.Response)

func UpdatePassword

func UpdatePassword(c *controller.Context) (res schema.Response)

func UpdateProfile

func UpdateProfile(c *controller.Context) (res schema.Response)

Types

type SearchUserParams

type SearchUserParams struct {
	Account string `json:"account" form:"account" valid:"required~请输入搜索字段"` // 按用户名来搜索
}

type SignInParams

type SignInParams struct {
	Account  string `json:"account" valid:"required~请输入登陆账号"`
	Password string `json:"password" valid:"required~请输入密码"`
}

type SignUpWithUsernameParams

type SignUpWithUsernameParams struct {
	Username string `json:"username" valid:"required~请输入用户名"` // 用户名
	Password string `json:"password" valid:"required~请输入密码"`  // 密码
}

type UpdatePasswordParams

type UpdatePasswordParams struct {
	OldPassword string `json:"old_password" valid:"required~请输入旧密码"`
	NewPassword string `json:"new_password" valid:"required~请输入新密码"`
}

type UpdateProfileParams

type UpdateProfileParams struct {
	Nickname *string    `json:"nickname" valid:"length(1|36)~昵称长度为1-36位"`
	Gender   *db.Gender `json:"gender"`
	Avatar   *string    `json:"avatar"`
}

Jump to

Keyboard shortcuts

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