CoreSQLIDs

package
v5.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIDsAndDelete

func GetIDsAndDelete(dataList interface{}, tableName string, fields string, ids pq.Int64Array, haveRemove bool) (err error)

GetIDsAndDelete 带有delete的方法设计 必须带有id / delete_at 字段设计

func GetIDsNameAndDelete

func GetIDsNameAndDelete(tableName string, ids pq.Int64Array, haveRemove bool) (data map[int64]string, err error)

GetIDsNameAndDelete 必须带有id / delete_at / name字段设计

func GetIDsOrgAndDelete

func GetIDsOrgAndDelete(dataList interface{}, tableName string, fields string, ids pq.Int64Array, orgID int64, haveRemove bool) (err error)

GetIDsOrgAndDelete 带有delete的方法设计 必须带有id / org_id / delete_at 字段设计

func GetIDsOrgNameAndDelete

func GetIDsOrgNameAndDelete(tableName string, ids pq.Int64Array, orgID int64, haveRemove bool) (data map[int64]string, err error)

GetIDsOrgNameAndDelete 必须带有id / org_id / delete_at / name字段设计

func GetIDsOrgTitleAndDelete

func GetIDsOrgTitleAndDelete(tableName string, ids pq.Int64Array, orgID int64, haveRemove bool) (data map[int64]string, err error)

GetIDsOrgTitleAndDelete 必须带有id / org_id / delete_at / title字段设计

func GetIDsTitleAndDelete

func GetIDsTitleAndDelete(tableName string, ids pq.Int64Array, haveRemove bool) (data map[int64]string, err error)

GetIDsTitleAndDelete 必须带有id / delete_at / title字段设计

Types

type DataGetIDsOrgNameAndDeleteAndAvatar

type DataGetIDsOrgNameAndDeleteAndAvatar struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//昵称
	Name string `db:"name" json:"name"`
	//头像
	Avatar int64 `db:"avatar" json:"avatar"`
}

func GetIDsOrgNameAndDeleteAndAvatar

func GetIDsOrgNameAndDeleteAndAvatar(tableName string, ids pq.Int64Array, orgID int64, haveRemove bool) (data []DataGetIDsOrgNameAndDeleteAndAvatar, err error)

GetIDsOrgNameAndDeleteAndAvatar 必须带有id / org_id / delete_at / name字段设计

Jump to

Keyboard shortcuts

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