Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleJSONLD ¶ added in v0.1.1
type ArticleJSONLD struct {
Context string `json:"@context"`
Type string `json:"@type"`
Headline string `json:"headline"`
Author Person `json:"author"`
Publisher Organization `json:"publisher"`
DatePublished string `json:"datePublished"`
URL string `json:"url"`
InteractionStatistic InteractionCounter `json:"interactionStatistic"`
}
type ArticlesSimpleVo ¶ added in v0.1.1
type ArticlesSimpleVo struct {
Id uint64 `json:"id"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Content string `json:"content,omitempty"`
CreateTime string `json:"createTime,omitempty"`
LastUpdateTime string `json:"lastUpdateTime,omitempty"`
Username string `json:"username,omitempty"`
AuthorId uint64 `json:"authorId,omitempty"`
ViewCount uint64 `json:"viewCount"`
CommentCount uint64 `json:"commentCount"`
Type int8 `json:"type,omitempty"`
TypeStr string `json:"typeStr,omitempty"`
Categories []string `json:"categories,omitempty"`
CategoriesId []uint64 `json:"categoriesId,omitempty"`
AvatarUrl string `json:"avatarUrl,omitempty"`
Posters []PosterVo `json:"posters,omitempty"`
}
type ChatItemVo ¶ added in v0.1.1
type ChatItemVo struct {
Id uint64 `json:"id"` // user_chat_config id
PeerId uint64 `json:"peerId"`
PeerUsername string `json:"peerUsername"`
PeerAvatar string `json:"peerAvatar"`
LastMsg string `json:"lastMsg"`
LastMsgTime string `json:"lastMsgTime"`
UnreadCount uint `json:"unreadCount"`
ConvId uint64 `json:"convId"`
}
type InteractionCounter ¶ added in v0.1.1
type Organization ¶ added in v0.1.1
type RegReq ¶ added in v0.0.9
type RegReq struct {
Email string `json:"email" validate:"required,email"`
Username string `json:"userName" validate:"required"`
Password string `json:"passWord" validate:"required"`
InvitationCode string `json:"invitationCode,omitempty"`
CaptchaId string `json:"captchaId" validate:"required"`
CaptchaCode string `json:"captchaCode" validate:"required"`
}
type UserCard ¶ added in v0.1.1
type UserCard struct {
UserId uint64 `json:"userId"`
Username string `json:"username"`
Nickname string `json:"nickname"`
AvatarUrl string `json:"avatarUrl"`
Bio string `json:"bio"`
Signature string `json:"signature"`
IsAdmin bool `json:"isAdmin"`
ArticleCount uint `json:"articleCount"`
ReplyCount uint `json:"replyCount"`
LikeReceivedCount uint `json:"likeReceivedCount"`
LikeGivenCount uint `json:"likeGivenCount"`
FollowerCount uint `json:"followerCount"`
FollowingCount uint `json:"followingCount"`
CollectionCount uint `json:"collectionCount"`
IsOnline bool `json:"isOnline"`
IsFollowing bool `json:"isFollowing"`
ExternalInfo users.ExternalInformation `json:"externalInformation"`
IsSelf bool `json:"isSelf"`
LastActiveTime time.Time `json:"lastActiveTime"`
CreatedAt time.Time `json:"createdAt"`
}
type UserDetailedVo ¶ added in v0.1.1
type UserDetailedVo struct {
Id uint64 `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Nickname string `json:"nickname"`
AvatarUrl string `json:"avatarUrl"`
Bio string `json:"bio"`
Signature string `json:"signature"`
WebsiteName string `json:"websiteName"`
Website string `json:"website"`
ExternalInformation users.ExternalInformation `json:"externalInformation"`
Prestige int64 `json:"prestige"`
CreatedAt time.Time `json:"createdAt"`
}
type UserInfoShow ¶
type UserInfoShow struct {
UserId uint64 `json:"userId,omitempty"`
Username string `json:"username"`
Email string `json:"email"`
Nickname string `json:"nickname"`
Bio string `json:"bio"`
Signature string `json:"Signature"`
Prestige int64 `json:"prestige"`
AvatarUrl string `json:"avatarUrl"`
UserPoint int64 `json:"userPoint"`
CreateTime time.Time `json:"createTime"`
IsAdmin bool `json:"isAdmin"`
ExternalInformation users.ExternalInformation `json:"externalInformation"`
}
Click to show internal directories.
Click to hide internal directories.