Documentation ¶
Index ¶
- type Article
- func (a *Article) Count() (bool, int64)
- func (a *Article) Create(articleDto *dto.ArticleDto) (isError bool, message string)
- func (a *Article) Delete(articleDto *dto.ArticleDtoForDelete) (isError bool, message string)
- func (a *Article) Detail(articleID uint) (bool, *models.Article)
- func (a *Article) Edit(articleDto *dto.ArticleDtoForEdit) (isError bool, message string)
- func (a *Article) List(offset uint) (bool, *models.ApiArticleList)
- func (a *Article) MyList(uid uint) (bool, *models.ApiArticleList)
- type Auth
- type Comment
- func (c *Comment) CommentNumberModify(articleID uint, signal string) bool
- func (c *Comment) Create(commentDto *dto.CommentDtoForCreate) bool
- func (c *Comment) Delete(commentDto *dto.CommentDtoForDelete) bool
- func (c *Comment) Edit(commentDto *dto.CommentDtoForEdit) bool
- func (c *Comment) Like(likeDto *dto.LikeDto, signal string) bool
- func (c *Comment) LikeShow(likeDto *dto.LikeDto) (bool, string)
- func (c *Comment) LikeStatusShow(likeDto *dto.LikeDto) (ok bool, isLike bool)
- func (c *Comment) LikesShow(likesDto *dto.LikesDto) (bool, []bool)
- func (c *Comment) List(ad uint) (bool, *models.ApiComments)
- func (c *Comment) MyList(ud uint) (bool, *models.ApiComments)
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
func (*Article) Create ¶
func (a *Article) Create(articleDto *dto.ArticleDto) (isError bool, message string)
func (*Article) Delete ¶
func (a *Article) Delete(articleDto *dto.ArticleDtoForDelete) (isError bool, message string)
func (*Article) Edit ¶
func (a *Article) Edit(articleDto *dto.ArticleDtoForEdit) (isError bool, message string)
type Auth ¶
func (*Auth) BeforeModify ¶
func (a *Auth) BeforeModify(authDto *dto.AuthDtoForModify) (bool, string)
type Comment ¶
func (*Comment) CommentNumberModify ¶
func (*Comment) Delete ¶
func (c *Comment) Delete(commentDto *dto.CommentDtoForDelete) bool
Delete jwt-->article owner,comment user
func (*Comment) Edit ¶
func (c *Comment) Edit(commentDto *dto.CommentDtoForEdit) bool
jwt-->comment user
func (*Comment) LikeStatusShow ¶
Click to show internal directories.
Click to hide internal directories.