Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInfoRequest ¶
type GetInfoResponse ¶
type LoginRequest ¶
type LoginResponse ¶
type RegisterRequest ¶
type RegisterResponse ¶
type Service ¶
type Service interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) GetInfo(*gin.Context, *GetInfoRequest) (*GetInfoResponse, error) }
type User ¶
type User struct { Avatar string `json:"avatar"` // 用户头像 BackgroundImage string `json:"background_image"` // 用户个人页顶部大图 FavoriteCount int64 `json:"favorite_count"` // 喜欢数 FollowCount int64 `json:"follow_count"` // 关注总数 FollowerCount int64 `json:"follower_count"` // 粉丝总数 ID int64 `json:"id"` // 用户id IsFollow bool `json:"is_follow"` // true-已关注,false-未关注 Name string `json:"name"` // 用户名称 Signature string `json:"signature"` // 个人简介 TotalFavorited int64 `json:"total_favorited"` // 获赞数量 WorkCount int64 `json:"work_count"` // 作品数 }
User
Click to show internal directories.
Click to hide internal directories.