model

package
v0.0.0-...-531eea5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResponseCommonModel = &responseCommonModel{}

ResponseCommonModel 全局返回对象实例

Functions

This section is empty.

Types

type ResponseStatus

type ResponseStatus string

ResponseStatus 响应状态

const (
	SUCCESS ResponseStatus = "Success"
	FAIL                   = "Fail"
)

type UserViewModel

type UserViewModel struct {
	ID           uint
	Name         string
	Phone        string
	Gender       service.Gender
	Avatar       string
	RegisterMode service.RegisterMode
	CreateTime   time.Time
}

UserViewModel (ViewModel)用户信息

func ConvertUserViewModel

func ConvertUserViewModel(user *service.User) *UserViewModel

ConvertUserViewModel 转换业务对象User为ViewModel

Jump to

Keyboard shortcuts

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