Discover Packages
github.com/teamlint/mons
ddd
monolith
v2
domain
model
account
entity
package
Version:
v0.0.0-...-0231498
Opens a new window with list of versions in this module.
Published: Sep 27, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Role struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt time .Time `json:"created_at"`
UpdatedAt time .Time `json:"updated_at"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Nickname string `json:"nickname"`
Password string `json:"-"`
Intro string `json:"intro"`
IsApproved bool `json:"is_approved"`
CreatedAt time .Time `json:"created_at"`
UpdatedAt time .Time `json:"updated_at"`
}
type UserInfo struct {
User
Roles []*Role `json:"roles"`
}
UserInfo 用户聚合
Source Files
¶
Click to show internal directories.
Click to hide internal directories.