dr_business

package
v0.0.0-...-1489327 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBusiness

func AddBusiness(bs Business) error

添加业务系统

func CheckNameExist

func CheckNameExist(name string) int

验证系统名称是否已经存在

func CountBusiness

func CountBusiness(condArr map[string]string) int64

统计数量

func DeleteBusiness

func DeleteBusiness(ids string) error

func GetBusinessName

func GetBusinessName(id int) string

func UpdateBusiness

func UpdateBusiness(id int, bs Business) error

修改业务系统

Types

type Business

type Business struct {
	Id       int    `orm:"pk;column(id);"`
	BsName   string `orm:"column(bs_name);"`
	IsDelete int    `orm:"column(is_delete);"`
	Created  int64  `orm:"column(created);"`
	Updated  int64  `orm:"column(updated);"`
}

func GetBusiness

func GetBusiness(id int) (Business, error)

得到业务系统

func ListAllBusiness

func ListAllBusiness() (bsconf []Business)

func ListBusiness

func ListBusiness(condArr map[string]string, page int, offset int) (num int64, err error, bsconf []Business)

获取业务系统列表

func (*Business) TableName

func (this *Business) TableName() string

Jump to

Keyboard shortcuts

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