services

package
v0.0.0-...-3f42f3c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADemoService

type ADemoService interface {
	// GetAll 列表查询
	GetAll(sqlwhere *common.SqlWhere) (*common.SqlReturn, error)
	// GetById 获取单条记录
	GetById(id int64) (*models.ADemo, error)
	// CountAll 统计
	CountAll() int64

	// Create 添加单条记录
	Create(data *models.ADemo) (int64, error)
	// Update 修改单条记录
	Update(data *models.ADemo, columns []string) (int64, error)
	// RuanDelete 软删除单条记录
	RuanDelete(id int64) (int64, error)
	// Delete 删除单条记录
	Delete(id int64) (int64, error)

	// GetWhere Sql语句
	GetWhere(sql string) []models.ADemo
	GetMenu(pid int) []*models.ADemo
}

func NewADemoService

func NewADemoService() ADemoService

Jump to

Keyboard shortcuts

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