message

package
v0.0.0-...-583b118 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginMesType       = "LoginMes"
	LoginResMesType    = "LoginResMes"
	RegisterMesType    = "RegisterMes"
	RegisterResMesType = "RegisterResMes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginMes

type LoginMes struct {
	UserId   int    `json:"userId"`
	UserPwd  string `json:"userPwd"`
	UserName string `json:"userName"`
}

type LoginResMes

type LoginResMes struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

type Message

type Message struct {
	Type string `json:"type"`
	Data string `json:"data"`
}

type RegisterMes

type RegisterMes struct {
	User User `json:"user"` //User结构体类型,可调用其中字段
}

type RegisterResMes

type RegisterResMes struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

type User

type User struct {
	UserId   int    `json:"userId"`
	UserPwd  string `json:"userPwd"`
	UserName string `json:"userName"`
}

Jump to

Keyboard shortcuts

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