response

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 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 UserListResponse

type UserListResponse struct {
	List  []UserResponse `json:"list"`
	Total int64          `json:"total"`
}

type UserResponse

type UserResponse struct {
	ID        uint64 `json:"id"`
	Telephone string `json:"telephone"`
	Avatar    string `json:"avatar"`
	Nickname  string `json:"nickname"`
	RealName  string `json:"real_name"`
	Gender    uint8  `json:"gender"`
	Birthday  string `json:"birthday"`
	Status    uint8  `json:"status"`
}

func FromDomainUser

func FromDomainUser(user *model.User) *UserResponse

func ListFromDomainUser

func ListFromDomainUser(users []model.User) []UserResponse

Jump to

Keyboard shortcuts

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