user

package
v0.0.0-...-ae394c8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserCredentials

func CreateUserCredentials(c *gin.Context)

CreateUserCredentials @Tags open-apis/core @summary 新增用户证件(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateUserCredentialsReq true "请求参数体" @Router /open-apis/core/user/credentials [post]

func DeleteUserCredentials

func DeleteUserCredentials(c *gin.Context)

DeleteUserCredentials @Tags open-apis/core @summary 删除用户证件(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteUserCredentialsReq true "请求参数体" @Router /open-apis/core/user/credentials [delete]

func GetUserAccount

func GetUserAccount(c *gin.Context)

GetUserAccount @Tags open-apis/core @summary 账号列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param name query string false "姓名" @Param phone query string false "手机" @Router /open-apis/core/user/account [get]

func GetUserCredentials

func GetUserCredentials(c *gin.Context)

GetUserCredentials @Tags open-apis/core @summary 获取用户证件信息(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/user/credentials [get]

func GetUserList

func GetUserList(c *gin.Context)

GetUserList @Tags open-apis/core @summary 用户列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param name query string false "姓名" @Param phone query string false "手机" @Router /open-apis/core/user/list [get]

func GetUserMember

func GetUserMember(c *gin.Context)

GetUserMember @Tags open-apis/core @summary 租户的账号列表(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param name query string false "姓名" @Param phone query string false "手机" @Router /open-apis/core/user/member [get]

func Load

func Load(r *gin.RouterGroup)

func PostUserAccount

func PostUserAccount(c *gin.Context)

PostUserAccount @Tags open-apis/core @summary 新增账号(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body Account true "请求参数体" @Router /open-apis/core/user/account [post]

func PutUserClient

func PutUserClient(c *gin.Context)

PutUserClient @Tags open-apis/core @summary 解绑用户小程序(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body _UserPk true "请求参数体" @Router /open-apis/core/user/client [put]

func PutUserPhone

func PutUserPhone(c *gin.Context)

PutUserPhone @Tags open-apis/core @summary 更换用户手机号(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body PhoneChangeReq true "请求参数体" @Router /open-apis/core/user/phone [put]

func SetUserBaseInfo

func SetUserBaseInfo(c *gin.Context)

SetUserBaseInfo @Tags open-apis/core @summary 修改用户基础信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body SetUserBaseInfoReq true "请求参数体" @Router /open-apis/core/user/base_info [put]

Types

type Account

type Account struct {
	Name  string `json:"name"  form:"name" query:"name"`
	Phone string `json:"phone"  form:"phone" query:"phone"`
}

type CreateUserCredentialsReq

type CreateUserCredentialsReq struct {
	Name          string `json:"name"  form:"name" query:"name"`
	Serial        string `json:"serial"  form:"serial" query:"serial"`
	Type          int32  `json:"type"  form:"type" query:"type"`
	FrontFileName string `json:"front_file_name"  form:"front_file_name" query:"front_file_name"`
	BackFileName  string `json:"back_file_name"  form:"back_file_name" query:"back_file_name"`
}

type DeleteUserCredentialsReq

type DeleteUserCredentialsReq struct {
	Pk string `json:"pk"  form:"pk" query:"pk"`
}

type GetUsersReq

type GetUsersReq struct {
	Pagination
	Account
}

type Pagination

type Pagination struct {
	Page int32 `json:"page" form:"page" query:"page"`
	Size int32 `json:"size" form:"size" query:"size"`
}

type PhoneChangeReq

type PhoneChangeReq struct {
	UserPk string `json:"user_pk"  form:"user_pk" query:"user_pk"`
	Phone  string `json:"phone"  form:"phone" query:"phone"`
}

type SetUserBaseInfoReq

type SetUserBaseInfoReq struct {
	Pk       string `json:"pk"  form:"pk" query:"pk"`
	Name     string `json:"name"  form:"name" query:"name"`
	IdCard   string `json:"id_card"  form:"id_card" query:"id_card"`
	Birthday string `json:"birthday"  form:"birthday" query:"birthday"`
	Gender   int32  `json:"gender"  form:"gender" query:"gender"`
	Height   string `json:"height"  form:"height" query:"height"`
	Weight   string `json:"weight"  form:"weight" query:"weight"`
}

type VerifyUserReq

type VerifyUserReq struct {
	Name   string `json:"name"  form:"name" query:"name"`
	IdCard string `json:"id_card"  form:"id_card" query:"id_card"`
	Face   string `json:"face"  form:"face" query:"face"`
	Url    string `json:"url"  form:"url" query:"url"`
}

Jump to

Keyboard shortcuts

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