comment_service

package
v0.0.0-...-b8d1666 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ids []int) error

func DeleteSelf

func DeleteSelf(userId int, ids []int) error

func ExistByIds

func ExistByIds(ids []int) (bool, error)

Types

type Comment

type Comment struct {
	ID        int
	ArticleId int
	UserId    int
	Content   string

	PageNum  int
	PageSize int
}

func (*Comment) Add

func (c *Comment) Add() error

func (*Comment) Count

func (c *Comment) Count() (int, error)

func (*Comment) Get

func (c *Comment) Get() (*models.Comment, error)

func (*Comment) GetAll

func (c *Comment) GetAll() ([]*models.Comment, error)

func (*Comment) Paging

func (c *Comment) Paging() ([]*models.Comment, error)

Jump to

Keyboard shortcuts

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