| 43 | } |
| 44 | |
| 45 | type APIBook struct { |
| 46 | BookId int `json:"book_id"` |
| 47 | BookName string `json:"book_name"` |
| 48 | Identify string `json:"identify"` |
| 49 | OrderIndex int `json:"sort"` |
| 50 | Description string `json:"description"` |
| 51 | Label string `json:"tags"` |
| 52 | Vcnt int `json:"view"` // 阅读 |
| 53 | Star int `json:"star"` // 收藏 |
| 54 | Lang string `json:"lang"` |
| 55 | Cover string `json:"cover"` |
| 56 | Score int `json:"score"` // 书籍评分,默认40,即4.0星 |
| 57 | CntScore int `json:"cnt_score"` // 评分个数 |
| 58 | CntComment int `json:"cnt_comment"` // 评论人数 |
| 59 | DocCount int `json:"cnt_doc"` // 章节数量 |
| 60 | ReleaseTime time.Time `json:"updated_at"` // 更新时间。这里用书籍的release_time 作为最后的更新时间。因为现有的更新时间不准 |
| 61 | CreateTime time.Time `json:"created_at"` // 新建时间 |
| 62 | MemberId int `json:"uid,omitempty"` |
| 63 | User string `json:"user,omitempty"` // 分享人 |
| 64 | Author string `json:"author,omitempty"` // 原作者 |
| 65 | AuthorURL string `json:"author_url,omitempty"` // 原作者连接地址 |
| 66 | DocReaded int `json:"cnt_readed"` //已读章节 |
| 67 | IsStar bool `json:"is_star"` //是否已收藏到书架 |
| 68 | //PrivatelyOwned int `json:"private"` |
| 69 | } |
| 70 | |
| 71 | type APIRegister struct { |
| 72 | Nickname string `form:"nickname"` |
nothing calls this directly
no outgoing calls
no test coverage detected