Documentation ¶
Overview ¶
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-05-11
- Time: 00:17
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-01-11
- Time: 23:24
*
- Created by GoLand.
- User: zhu
- Email: ylsc633@gmail.com
- Date: 2019-05-16
- Time: 20:17
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-05-08
- Time: 22:35
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-01-12
- Time: 21:03
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-01-13
- Time: 00:51
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-05-07
- Time: 22:12
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-01-12
- Time: 01:57
*
- Created by GoLand.
- User: xzghua@gmail.com
- Date: 2019-01-14
- Time: 22:25
Index ¶
- func AllLink() (links []entity.ZLinks, err error)
- func AllTags() ([]entity.ZTags, error)
- func CateCnt() (cnt int64, err error)
- func CateListBySort() ([]common.Category, error)
- func CateStore(cs common.CateStore) (bool, error)
- func CateUpdate(cateId int, cs common.CateStore) (bool, error)
- func CommonData() (h gin.H, err error)
- func CommonRss() (feed *feeds.Feed, err error)
- func ConsolePostCount(limit int, offset int, isTrash bool) (count int64, err error)
- func ConsolePostIndex(limit int, offset int, isTrash bool) (postListArr []*common.ConsolePostList, err error)
- func DelAllCache()
- func DelCateRel(cateId int)
- func DelTagRel(tagId int)
- func GetCateById(cateId int) (cate *entity.ZCategories, err error)
- func GetCateByParentId(parentId int) (cate *entity.ZCategories, err error)
- func GetPostCateByPostId(postId int) (cates *entity.ZCategories, err error)
- func GetPostTagsByPostId(postId int) (tagsArr []int, err error)
- func GetSimilar(beginId []int, resIds []int, level int) (beginId2 []int, resIds2 []int, level2 int)
- func GetSystemList() (system *entity.ZSystems, err error)
- func GetTagById(tagId int) (tag *entity.ZTags, err error)
- func GetTagsByIds(tagIds []int) ([]*entity.ZTags, error)
- func GetUserByEmail(email string) (user *entity.ZUsers, err error)
- func GetUserById(userId int) (*entity.ZUsers, error)
- func GetUserCnt() (cnt int64, err error)
- func IndexPost(page string, limit string, indexType IndexType, name string) (indexPostIndex common.IndexPostList, err error)
- func IndexPostDetail(postIdStr string) (postDetail common.IndexPostDetail, err error)
- func IndexPostDetailDao(postId int) (postDetail common.IndexPostDetail, err error)
- func IndexSystem() (system *entity.ZSystems, err error)
- func LastPost(postId int) (post *entity.ZPosts, err error)
- func LinkCnt() (cnt int64, err error)
- func LinkDestroy(linkId int) (err error)
- func LinkDetail(linkId int) (link *entity.ZLinks, err error)
- func LinkList(offset int, limit int) (links []entity.ZLinks, cnt int64, err error)
- func LinkSore(ls common.LinkStore) (err error)
- func LinkUpdate(ls common.LinkStore, linkId int) (err error)
- func NextPost(postId int) (post *entity.ZPosts, err error)
- func PostArchives() (archivesList map[string][]*entity.ZPosts, err error)
- func PostCate(postId int) (int, error)
- func PostCateList(cateId int, limit int, offset int) (postListArr []*common.ConsolePostList, err error)
- func PostCateListCount(cateId int, limit int, offset int) (count int64, err error)
- func PostCates(postId int) (cate *entity.ZCategories, err error)
- func PostCnt() (cnt int64, err error)
- func PostDestroy(postId int) (bool, error)
- func PostDetail(postId int) (p *entity.ZPosts, err error)
- func PostIdTag(postId int) (tagIds []int, err error)
- func PostIdTags(postId int) (tags []*entity.ZTags, err error)
- func PostRss() (rssList []*common.IndexRss, err error)
- func PostStore(ps common.PostStore, userId int)
- func PostTagList(tagId int, limit int, offset int) (postListArr []*common.ConsolePostList, err error)
- func PostTagListCount(tagId int, limit int, offset int) (count int64, err error)
- func PostUnTrash(postId int) (bool, error)
- func PostUpdate(postId int, ps common.PostStore)
- func PostView(postId int) (*entity.ZPostViews, error)
- func PostViewAdd(postIdStr string)
- func Qiniu(localFile string, fileName string)
- func SystemUpdate(sId int, ss common.ConsoleSystem) error
- func TagCnt() (cnt int64, err error)
- func TagStore(ts common.TagStore) (err error)
- func TagUpdate(tagId int, ts common.TagStore) error
- func TagsIndex(limit int, offset int) (num int64, tags []*entity.ZTags, err error)
- func UserCnt() (cnt int64, err error)
- func UserStore(ar common.AuthRegister) (user *entity.ZUsers, err error)
- type IndexType
- type MyPutRet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CateListBySort ¶
Get the cate list what by parent sort
func CommonData ¶
func ConsolePostCount ¶
func ConsolePostIndex ¶
func DelAllCache ¶
func DelAllCache()
func DelCateRel ¶
func DelCateRel(cateId int)
func GetCateById ¶
func GetCateById(cateId int) (cate *entity.ZCategories, err error)
func GetCateByParentId ¶
func GetCateByParentId(parentId int) (cate *entity.ZCategories, err error)
func GetPostCateByPostId ¶
func GetPostCateByPostId(postId int) (cates *entity.ZCategories, err error)
func GetPostTagsByPostId ¶
func GetSimilar ¶
func GetSystemList ¶
func GetUserCnt ¶
func IndexPostDetail ¶
func IndexPostDetail(postIdStr string) (postDetail common.IndexPostDetail, err error)
func IndexPostDetailDao ¶
func IndexPostDetailDao(postId int) (postDetail common.IndexPostDetail, err error)
func IndexSystem ¶
func LinkDestroy ¶
func PostCateList ¶
func PostCateListCount ¶
func PostDestroy ¶
func PostTagList ¶
func PostTagListCount ¶
func PostUnTrash ¶
func PostUpdate ¶
func PostViewAdd ¶
func PostViewAdd(postIdStr string)
func Qiniu ¶
Upload file to Qiniu LocalFile is the local file, such as "./static/images/uploads/2.jpeg" FileName is the name what qiniu name as The storage Zone is default
func SystemUpdate ¶
func SystemUpdate(sId int, ss common.ConsoleSystem) error
Types ¶
Click to show internal directories.
Click to hide internal directories.