service

package
v0.0.0-...-451fb61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 22 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllLink() (links []entity.ZLinks, err error)

func AllTags

func AllTags() ([]entity.ZTags, error)

func CateCnt

func CateCnt() (cnt int64, err error)

func CateListBySort

func CateListBySort() ([]common.Category, error)

Get the cate list what by parent sort

func CateStore

func CateStore(cs common.CateStore) (bool, error)

func CateUpdate

func CateUpdate(cateId int, cs common.CateStore) (bool, error)

func CommonData

func CommonData() (h gin.H, err error)

func CommonRss

func CommonRss() (feed *feeds.Feed, err error)

func ConsolePostCount

func ConsolePostCount(limit int, offset int, isTrash bool) (count int64, err error)

func ConsolePostIndex

func ConsolePostIndex(limit int, offset int, isTrash bool) (postListArr []*common.ConsolePostList, err error)

func DelAllCache

func DelAllCache()

func DelCateRel

func DelCateRel(cateId int)

func DelTagRel

func DelTagRel(tagId 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 GetPostTagsByPostId(postId int) (tagsArr []int, err error)

func GetSimilar

func GetSimilar(beginId []int, resIds []int, level int) (beginId2 []int, resIds2 []int, level2 int)

func GetSystemList

func GetSystemList() (system *entity.ZSystems, err error)

func GetTagById

func GetTagById(tagId int) (tag *entity.ZTags, err error)

func GetTagsByIds

func GetTagsByIds(tagIds []int) ([]*entity.ZTags, error)

func GetUserByEmail

func GetUserByEmail(email string) (user *entity.ZUsers, err error)

func GetUserById

func GetUserById(userId int) (*entity.ZUsers, error)

func GetUserCnt

func GetUserCnt() (cnt int64, err error)

func IndexPost

func IndexPost(page string, limit string, indexType IndexType, name string) (indexPostIndex common.IndexPostList, err error)

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 IndexSystem() (system *entity.ZSystems, err error)

func LastPost

func LastPost(postId int) (post *entity.ZPosts, err error)

func LinkCnt

func LinkCnt() (cnt int64, err error)

func LinkDestroy

func LinkDestroy(linkId int) (err error)

func LinkDetail

func LinkDetail(linkId int) (link *entity.ZLinks, err error)
func LinkList(offset int, limit int) (links []entity.ZLinks, cnt int64, err error)

func LinkSore

func LinkSore(ls common.LinkStore) (err error)

func LinkUpdate

func LinkUpdate(ls common.LinkStore, linkId int) (err error)

func NextPost

func NextPost(postId int) (post *entity.ZPosts, err error)

func PostArchives

func PostArchives() (archivesList map[string][]*entity.ZPosts, err error)

func PostCate

func PostCate(postId int) (int, error)

func PostCateList

func PostCateList(cateId int, limit int, offset int) (postListArr []*common.ConsolePostList, err error)

func PostCateListCount

func PostCateListCount(cateId int, limit int, offset int) (count int64, err error)

func PostCates

func PostCates(postId int) (cate *entity.ZCategories, err error)

func PostCnt

func PostCnt() (cnt int64, err error)

func PostDestroy

func PostDestroy(postId int) (bool, error)

func PostDetail

func PostDetail(postId int) (p *entity.ZPosts, err error)

func PostIdTag

func PostIdTag(postId int) (tagIds []int, err error)

func PostIdTags

func PostIdTags(postId int) (tags []*entity.ZTags, err error)

func PostRss

func PostRss() (rssList []*common.IndexRss, err error)

func PostStore

func PostStore(ps common.PostStore, userId int)

func PostTagList

func PostTagList(tagId int, limit int, offset int) (postListArr []*common.ConsolePostList, err error)

func PostTagListCount

func PostTagListCount(tagId int, limit int, offset int) (count int64, err error)

func PostUnTrash

func PostUnTrash(postId int) (bool, error)

func PostUpdate

func PostUpdate(postId int, ps common.PostStore)

func PostView

func PostView(postId int) (*entity.ZPostViews, error)

func PostViewAdd

func PostViewAdd(postIdStr string)

func Qiniu

func Qiniu(localFile string, fileName string)

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

func TagCnt

func TagCnt() (cnt int64, err error)

func TagStore

func TagStore(ts common.TagStore) (err error)

func TagUpdate

func TagUpdate(tagId int, ts common.TagStore) error

func TagsIndex

func TagsIndex(limit int, offset int) (num int64, tags []*entity.ZTags, err error)

func UserCnt

func UserCnt() (cnt int64, err error)

func UserStore

func UserStore(ar common.AuthRegister) (user *entity.ZUsers, err error)

Types

type IndexType

type IndexType string
const (
	IndexTypeOne   IndexType = "tag"
	IndexTypeTwo   IndexType = "cate"
	IndexTypeThree IndexType = "default"
)

type MyPutRet

type MyPutRet struct {
	Key    string
	Hash   string
	Fsize  int
	Bucket string
	Name   string
}

自定义返回值结构体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL