request

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Login 登录请求

func (*Login) Check

func (receiver *Login) Check() error

Check 登录请求参数检查

type NewToken

type NewToken struct {
	Name string `json:"name"`
}

type PushMailRequest

type PushMailRequest struct {
	SenderName string   `json:"sender_name"`
	Subject    string   `json:"subject"`
	Type       string   `json:"type"`
	Content    string   `json:"content"`
	ToMailList []string `json:"to_mail_list"`
}

PushMailRequest push mail request

func (*PushMailRequest) Check

func (p *PushMailRequest) Check() error

Check check

type Register

type Register struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Register 注册请求

func (*Register) Check

func (receiver *Register) Check() error

Check 注册请求参数检查

Jump to

Keyboard shortcuts

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