dto

package
v0.0.0-...-f4e968d Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomContext

type CustomContext struct {
	echo.Context // echo默认

	User *model.User // 用户信息
}

CustomContext 扩展echo上下文

type UserProfile

type UserProfile struct {
	ID          string    `json:"id"`                    // ID 用户id
	Username    string    `json:"username,omitempty"`    // Username 用户名
	Email       string    `json:"email,omitempty"`       // Email 邮箱
	IsAdmin     bool      `json:"isAdmin,omitempty"`     // IsAdmin 是否为管理员
	IsAbleLogin bool      `json:"isAbleLogin,omitempty"` // IsAbleLogin 是否可以登录
	CreateTime  time.Time `json:"createTime,omitempty"`  // CreateTime 创建时间
}

UserProfile 用户信息

Jump to

Keyboard shortcuts

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