Documentation ¶
Index ¶
- func CommentDelByKey(db *youdb.DB, aid string, cid uint64) error
- func CommentSetByKey(db *youdb.DB, aid string, cid uint64, obj Comment) error
- func LinkSet(db *youdb.DB, obj Link)
- func UserGetIDByName(db *youdb.DB, name string) string
- func UserUpdate(db *youdb.DB, obj User) error
- type Article
- type ArticleFeedListItem
- type ArticleLi
- type ArticleListItem
- type ArticleMini
- type ArticlePageInfo
- func ArticleList(db *youdb.DB, cmd, tb, key, score string, limit, tz int) ArticlePageInfo
- func ArticleNotificationList(db *youdb.DB, ids string, tz int) ArticlePageInfo
- func ArticleSearchList(db *youdb.DB, where, kw string, limit, tz int) ArticlePageInfo
- func UserArticleList(db *youdb.DB, cmd, tb, key string, limit, tz int) ArticlePageInfo
- type ArticleRelative
- type Category
- type CategoryMini
- type CategoryPageInfo
- type Comment
- type CommentListItem
- type CommentPageInfo
- type Link
- type QQ
- type User
- type UserMini
- type UserPageInfo
- type WeiBo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentSetByKey ¶
Types ¶
type Article ¶
type Article struct { ID uint64 `json:"id"` UID uint64 `json:"uid"` CID uint64 `json:"cid"` RUID uint64 `json:"ruid"` Title string `json:"title"` Content string `json:"content"` ClientIP string `json:"clientip"` Tags string `json:"tags"` AddTime uint64 `json:"addtime"` EditTime uint64 `json:"edittime"` Comments uint64 `json:"comments"` CloseComment bool `json:"closecomment"` Hidden bool `json:"hidden"` }
type ArticleFeedListItem ¶
type ArticleFeedListItem struct { ID uint64 UID uint64 Name string Cname string Title string AddTimeFmt string EditTimeFmt string Des string }
func ArticleFeedList ¶
func ArticleFeedList(db *youdb.DB, limit, tz int) []ArticleFeedListItem
type ArticleListItem ¶
type ArticleListItem struct { ID uint64 `json:"id"` UID uint64 `json:"uid"` Name string `json:"name"` Avatar string `json:"avatar"` CID uint64 `json:"cid"` Cname string `json:"cname"` RUID uint64 `json:"ruid"` Rname string `json:"rname"` Title string `json:"title"` EditTime uint64 `json:"edittime"` EditTimeFmt string `json:"edittimefmt"` Comments uint64 `json:"comments"` }
type ArticleMini ¶
type ArticlePageInfo ¶
type ArticlePageInfo struct { Items []ArticleListItem `json:"items"` HasPrev bool `json:"hasprev"` HasNext bool `json:"hasnext"` FirstKey uint64 `json:"firstkey"` FirstScore uint64 `json:"firstscore"` LastKey uint64 `json:"lastkey"` LastScore uint64 `json:"lastscore"` }
func ArticleList ¶
func ArticleList(db *youdb.DB, cmd, tb, key, score string, limit, tz int) ArticlePageInfo
func ArticleNotificationList ¶
func ArticleNotificationList(db *youdb.DB, ids string, tz int) ArticlePageInfo
func ArticleSearchList ¶
func ArticleSearchList(db *youdb.DB, where, kw string, limit, tz int) ArticlePageInfo
func UserArticleList ¶
func UserArticleList(db *youdb.DB, cmd, tb, key string, limit, tz int) ArticlePageInfo
type ArticleRelative ¶
func ArticleGetRelative ¶
func ArticleGetRelative(db *youdb.DB, aid uint64, tags string) ArticleRelative
type Category ¶
type CategoryMini ¶
func CategoryGetMain ¶
func CategoryGetMain(db *youdb.DB, currentCobj Category) []CategoryMini
func CategoryHot ¶
func CategoryHot(db *youdb.DB, limit int) []CategoryMini
func CategoryNewest ¶
func CategoryNewest(db *youdb.DB, limit int) []CategoryMini
type CategoryPageInfo ¶
type CategoryPageInfo struct { Items []Category `json:"items"` HasPrev bool `json:"hasprev"` HasNext bool `json:"hasnext"` FirstKey uint64 `json:"firstkey"` LastKey uint64 `json:"lastkey"` }
func CategoryList ¶
func CategoryList(db *youdb.DB, cmd, key string, limit int) CategoryPageInfo
type Comment ¶
type CommentListItem ¶
type CommentPageInfo ¶
type CommentPageInfo struct { Items []CommentListItem `json:"items"` HasPrev bool `json:"hasprev"` HasNext bool `json:"hasnext"` FirstKey uint64 `json:"firstkey"` LastKey uint64 `json:"lastkey"` }
func CommentList ¶
func CommentList(db *youdb.DB, cmd, tb, key string, limit, tz int) CommentPageInfo
type Link ¶
type User ¶
type User struct { ID uint64 `json:"id"` Name string `json:"name"` Gender string `json:"gender"` Flag int `json:"flag"` Avatar string `json:"avatar"` Password string `json:"password"` Email string `json:"email"` URL string `json:"url"` Telephone string `json:"telephone"` Coin uint64 `json:"coin"` Articles uint64 `json:"articles"` Replies uint64 `json:"replies"` RegTime uint64 `json:"regtime"` LastPostTime uint64 `json:"lastposttime"` LastReplyTime uint64 `json:"lastreplytime"` LastLoginTime uint64 `json:"lastlogintime"` About string `json:"about"` Notice string `json:"notice"` NoticeNum int `json:"noticenum"` EmailVerified bool `json:"emailverified"` TelephoneVerified bool `json:"telephoneverified"` Hidden bool `json:"hidden"` Session string `json:"session"` }
type UserPageInfo ¶
type UserPageInfo struct { Items []User `json:"items"` HasPrev bool `json:"hasprev"` HasNext bool `json:"hasnext"` FirstKey uint64 `json:"firstkey"` LastKey uint64 `json:"lastkey"` }
func UserListByFlag ¶
func UserListByFlag(db *youdb.DB, cmd, tb, key string, limit int) UserPageInfo
Source Files ¶
Click to show internal directories.
Click to hide internal directories.