services

package
v0.0.0-...-6c8b26e Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDemoByIds

func DeleteDemoByIds(ids ...uint) error

*

  • @Description 删除 *

func GetDemo

func GetDemo(id uint) (data models.DemoModel, err error)

*

  • @Description 查询 *

func GetDemoByWhere

func GetDemoByWhere(where map[string]interface{}) (data models.DemoModel, err error)

*

  • @Description 通用获取 *

func GetDemoList

func GetDemoList(where map[string]interface{}, limit int, order string) (dataList []models.DemoModel, err error)

*

  • @Description 列表 *

func GetDemoListPage

func GetDemoListPage(where map[string]interface{}, page uint, pageSize uint, order string) (dataList []models.DemoModel, pagination tools.Pagination, err error)

*

  • @Description 列表(分页) *

func SaveDemo

func SaveDemo(m *models.DemoModel) error

*

  • @Description 保存 *

func SetDemoDec

func SetDemoDec(column string, value int) error

*

  • @Description 字段值减少 *

func SetDemoInc

func SetDemoInc(column string, value int) error

*

  • @Description 字段值增加 *

func UpdateDemoByIds

func UpdateDemoByIds(values map[string]interface{}, ids ...uint) error

*

  • @Description 批量更新 *

Types

This section is empty.

Jump to

Keyboard shortcuts

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