model

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID        uint64             `json:"id"`
	Telephone string             `json:"telephone"`
	Password  string             `json:"password"`
	RealName  string             `json:"real_name"`
	Avatar    string             `json:"avatar"`
	Nickname  string             `json:"nickname"`
	Gender    uint8              `json:"gender"`
	Birthday  time.Time          `json:"birthday"`
	Status    model.BinaryStatus `json:"status"`
}

func UserFromModel

func UserFromModel(user *user.User) *User

func UserListFromModel

func UserListFromModel(users []user.User) []User

func (*User) ToModel

func (u *User) ToModel() *user.User

func (*User) Validate

func (u *User) Validate() error

Jump to

Keyboard shortcuts

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