Documentation ¶
Index ¶
- func GetIDsAndDelete(dataList interface{}, tableName string, fields string, ids pq.Int64Array, ...) (err error)
- func GetIDsNameAndDelete(tableName string, ids pq.Int64Array, haveRemove bool) (data map[int64]string, err error)
- func GetIDsOrgAndDelete(dataList interface{}, tableName string, fields string, ids pq.Int64Array, ...) (err error)
- func GetIDsOrgNameAndDelete(tableName string, ids pq.Int64Array, orgID int64, haveRemove bool) (data map[int64]string, err error)
- func GetIDsOrgTitleAndDelete(tableName string, ids pq.Int64Array, orgID int64, haveRemove bool) (data map[int64]string, err error)
- func GetIDsTitleAndDelete(tableName string, ids pq.Int64Array, haveRemove bool) (data map[int64]string, err error)
- type DataGetIDsOrgNameAndDeleteAndAvatar
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字段设计
Click to show internal directories.
Click to hide internal directories.