Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type CateItem
- type CateListsReq
- type CateListsResply
- type CommonResply
- type LoginReq
- type LoginResply
- type RegisterReq
- type SenEmailCodeReq
- type TopicCreateReq
- type TopicDetailResply
- type TopicItem
- type TopicItemReq
- type TopicListsReq
- type TopicListsResply
- type UserCheckinsReq
- type UserIntegralItem
- type UserIntegralReq
- type UserIntegralResply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CateItem ¶
type CateItem struct { Id uint32 `json:"id"` Name string `json:"name"` // 名称 Alias string `json:"alias"` // 别名 Desc string `json:"desc"` // 介绍 Pid uint8 `json:"pid"` // 上级节点 Level uint8 `json:"level"` // 层级:0一级(默认) Icons string `json:"icons"` // 图标 Sorts uint32 `json:"sorts"` // 排序 State uint8 `json:"state"` // 状态:0-关闭/1-开启 IsDelete uint8 `json:"is_delete"` // 软删除 CreatedAt string `json:"created_at"` // 创建时间 UpdatedAt string `json:"updated_at"` // 更新时间 }
type CateListsReq ¶
type CateListsResply ¶
type CateListsResply struct { CommonResply TotalCount int64 `json:"totalCount"` CurrCount int `json:"currCount"` Data []CateItem `json:"data"` }
type CommonResply ¶
type LoginResply ¶
type LoginResply struct { CommonResply Token string `json:"token"` }
type RegisterReq ¶
type SenEmailCodeReq ¶
type SenEmailCodeReq struct {
Email string `json:"email"`
}
type TopicCreateReq ¶
type TopicDetailResply ¶
type TopicDetailResply struct { CommonResply Data TopicItem `json:"data"` }
type TopicItem ¶
type TopicItem struct { Id uint32 `json:"id"` CateId uint `json:"cate_id"` // 版块ID UserId uint `json:"user_id"` // 用户ID Title string `json:"title"` // 标题 Tags string `json:"tags"` // 标签 State uint8 `json:"state"` // 状态:0-草稿/1-发布 Type uint8 `json:"type"` // 类型:0-默认/1-精华/2-置顶 Content string `json:"content"` // 内容 MdContent string `json:"md_content"` // markdown内容 IsDelete uint8 `json:"is_delete"` // 软删除 LastReplyAt string `json:"last_reply_at"` // 最后回复时间 ReplyId string `json:"reply_id"` // 最后回复者ID ViewCount uint64 `json:"view_count"` // 浏览量 LikeCount uint64 `json:"like_count"` // 点赞量 CommentCount uint64 `json:"comment_count"` // 评论量 CreatedAt string `json:"created_at"` // 创建时间 UpdatedAt string `json:"updated_at"` // 更新时间 }
type TopicItemReq ¶
type TopicItemReq struct {
TopicId uint32 `json:"topic_id"`
}
type TopicListsReq ¶
type TopicListsResply ¶
type TopicListsResply struct { CommonResply TotalCount int64 `json:"totalCount"` CurrCount int `json:"currCount"` Data []TopicItem `json:"data"` }
type UserCheckinsReq ¶
type UserCheckinsReq struct { }
type UserIntegralItem ¶
type UserIntegralReq ¶
type UserIntegralResply ¶
type UserIntegralResply struct { CommonResply TotalCount int64 `json:"totalCount"` CurrCount int `json:"currCount"` Data []UserIntegralItem `json:"data"` }
Click to show internal directories.
Click to hide internal directories.