viewmodel

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResponseSuccess = &Response{Code: consts.SuccessCode, Msg: consts.SuccessMessage}
)

Functions

This section is empty.

Types

type QueryContent

type QueryContent struct {
	PageNum  int         `json:"page_num"`
	PageSize int         `json:"page_size"`
	Total    int         `json:"total"`
	Result   interface{} `json:"result"`
}

type Response

type Response struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type User

type User struct {
	Id         int       `json:"id"`
	Username   string    `json:"username"`
	Phone      string    `json:"phone"`
	CreateTime time.Time `json:"create_time"`
	Token      string    `json:"token"`
}

func NewUser

func NewUser(user *datamodel.User, token string) *User

Jump to

Keyboard shortcuts

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