articleModel

package
v0.0.0-...-3208bda Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticle

func CreateArticle(author string, reviewer string, content string, forecast float64, importance int8, xtype int8, status int8, image_url string, platforms int8) int64

创建 TODO 此处代码自动生成,请删减不必要的字段

func DeleteArticle

func DeleteArticle(id int64) int64

删除

func GetArticleInfoById

func GetArticleInfoById(id int64, selectFields []string) (*schema.Article, error)

获取单个

func GetArticleList

func GetArticleList(offset, count uint, sort string, filter map[string]interface{}, selectFields []string) ([]*schema.Article, error)

获取列表 @param offset uint 起始位移 @param count uint 获取行数 @param sort string 字段排序 如"a desc,b asc,..." @param filter map[string]interface{} 字段过滤条件

func UpdateArticleField

func UpdateArticleField(id int64, data map[string]interface{}) (int64, error)

根据id修改角色字段信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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