request

package
v0.0.0-...-18998a6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUser

type CreateUser struct {
	Email                string `json:"email" label:"メールアドレス" validate:"required,email,max=256"`
	Password             string `json:"password" label:"パスワード" validate:"required,password,min=6,max=32"`
	PasswordConfirmation string `json:"passwordConfirmation" label:"パスワード(確認用)" validate:"required,eqfield=Password"`
}

CreateUser - ユーザー登録APIのリクエスト

type UpdateProfile

type UpdateProfile struct {
	Name        string `json:"name" label:"氏名" validate:"required,max=32"`
	DisplayName string `json:"displayName" label:"表示名" validate:"required,max=32"`
	Email       string `json:"email" label:"メールアドレス" validate:"required,email,max=256"`
	PhoneNumber string `json:"phoneNumber" label:"電話番号" validate:"max=13"`
	Thumbnail   string `json:"thumbnail" label:"サムネイル"`
	Biography   string `json:"biography" label:"自己紹介" validate:"max=256"`
}

UpdateProfile - ログインユーザー編集APIのリクエスト TODO: Add Password, PhoneNumber(regex)

Jump to

Keyboard shortcuts

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