Documentation ¶
Index ¶
- func CreateCommentsByCommunityId(p *model.CommentDetail) error
- func CreatePost(p *model.Post) error
- func GetCommentByPostId(id int64) (data []*model.CommentList, err error)
- func GetCommunityDetail(id int64) (*model.CommunityDetail, error)
- func GetCommunityList() (data []*model.Community, err error)
- func GetPostByCommunityId(p *model.ParamOrder, cid int64) (data []*model.ApiPostDetail, err error)
- func GetPostDetail(id int64) (data *model.ApiPostDetail, err error)
- func GetPostList(page int64, size int64) (data []*model.ApiPostDetail, err error)
- func GetPostOrder(p *model.ParamOrder) (data []*model.ApiPostDetail, err error)
- func Login(p *model.ParamLogin) (string, error)
- func PostVote(userId int64, p *model.ParamVote) error
- func SignUp(p *model.ParamSignUp) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommentsByCommunityId ¶
func CreateCommentsByCommunityId(p *model.CommentDetail) error
CreateCommentsByCommunityId 通过指定帖子id来创建评论
func CreatePost ¶
func GetCommentByPostId ¶
func GetCommentByPostId(id int64) (data []*model.CommentList, err error)
GetCommentByPostId 拼接帖子的评论信息
func GetCommunityDetail ¶
func GetCommunityDetail(id int64) (*model.CommunityDetail, error)
func GetCommunityList ¶
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 SignUp ¶
func SignUp(p *model.ParamSignUp) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.