logic

package
v0.0.0-...-228285a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommentsByCommunityId

func CreateCommentsByCommunityId(p *model.CommentDetail) error

CreateCommentsByCommunityId 通过指定帖子id来创建评论

func CreatePost

func CreatePost(p *model.Post) error

func GetCommentByPostId

func GetCommentByPostId(id int64) (data []*model.CommentList, err error)

GetCommentByPostId 拼接帖子的评论信息

func GetCommunityDetail

func GetCommunityDetail(id int64) (*model.CommunityDetail, error)

func GetCommunityList

func GetCommunityList() (data []*model.Community, err error)

func GetPostByCommunityId

func GetPostByCommunityId(p *model.ParamOrder, cid int64) (data []*model.ApiPostDetail, err error)

func GetPostDetail

func GetPostDetail(id int64) (data *model.ApiPostDetail, err error)

GetPostDetail 根据id信息获取对应的帖子详情

func GetPostList

func GetPostList(page int64, size int64) (data []*model.ApiPostDetail, err error)

GetPostList 根据分页参数返回对应的帖子

func GetPostOrder

func GetPostOrder(p *model.ParamOrder) (data []*model.ApiPostDetail, err error)

GetPostOrder 返回参数中新增了通过时间或者分数的排列来返回对应的帖子

func Login

func Login(p *model.ParamLogin) (string, error)

func PostVote

func PostVote(userId int64, p *model.ParamVote) error

func SignUp

func SignUp(p *model.ParamSignUp) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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