Back to

Package user

Latest Go to latest

The highest tagged major version is .

Published: Feb 24, 2020 | License: Apache-2.0 | Module:


func CreateUser

func CreateUser(c *gin.Context)

CreateUser for new user

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser for delete user

func SelectUserInfo

func SelectUserInfo(c *gin.Context)

SelectUserInfo for select user info

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser for update user info

type CreateUserRequest

type CreateUserRequest struct {
	UID   int64  `json:"uid"   form:"uid"   binding:"required"`
	Name  string `json:"name"  form:"name"  binding:"required"`
	Phone string `json:"phone" form:"phone" binding:"required"`

CreateUserRequest request

type CreateUserResponse

type CreateUserResponse struct {

CreateUserResponse response

type DeleteUserRequest

type DeleteUserRequest struct {
	UID int64 `json:"uid"   form:"uid"   binding:"required"`

DeleteUserRequest request

type DeleteUserResponse

type DeleteUserResponse struct {

DeleteUserResponse response

type SelectUserInfoRequest

type SelectUserInfoRequest struct {
	UID int64 `json:"uid" form:"uid" binding:"required"`

SelectUserInfoRequest request

type SelectUserInfoResponse

type SelectUserInfoResponse struct {

SelectUserInfoResponse response

type UpdateUserRequest

type UpdateUserRequest struct {
	UID      int64  `json:"uid"       form:"uid"       binding:"required"`
	NewName  string `json:"new_name"  form:"new_name"  binding:"required"`
	NewPhone string `json:"new_phone" form:"new_phone" binding:"required"`

UpdateUserRequest request

type UpdateUserResponse

type UpdateUserResponse struct {

UpdateUserResponse response

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier