Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // Login 登录 Login(username, password string) (*User, error) // Get 根据id获取 Get(id string) (*User, error) }
Service 用户信息服务接口
type User ¶
type User struct { ID string `json:"id,omitempty" db:"id"` Username string `json:"username,omitempty" db:"username"` Password string `json:"password,omitempty" db:"password"` NickName string `json:"nickName,omitempty" db:"nick_name"` Gender int64 `json:"gender,omitempty" db:"gender"` Avatar *string `json:"avatar,omitempty" db:"avatar"` CreateTime time.Time `json:"createTime,omitempty" db:"create_time"` }
User 用户实体
Click to show internal directories.
Click to hide internal directories.