Documentation
¶
Index ¶
- type ArgsCheckBind
- type ArgsCreate
- type ArgsDeleteByID
- type ArgsGetIDs
- type ArgsGetList
- type ArgsUpdateByID
- type FieldsTag
- type Tag
- func (t *Tag) CheckBind(args *ArgsCheckBind) (err error)
- func (t *Tag) Create(args *ArgsCreate) (data FieldsTag, err error)
- func (t *Tag) DeleteByID(args *ArgsDeleteByID) (err error)
- func (t *Tag) GetByIDNames(ids pq.Int64Array, bindID int64, limit int) (dataList map[int64]string)
- func (t *Tag) GetByIDs(args *ArgsGetIDs) (dataList []FieldsTag, err error)
- func (t *Tag) GetList(args *ArgsGetList) (dataList []FieldsTag, dataCount int64, err error)
- func (t *Tag) UpdateByID(args *ArgsUpdateByID) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsCheckBind ¶
type ArgsCheckBind struct { //ID列 IDs pq.Int64Array `json:"ids" check:"ids"` //绑定D BindID int64 `json:"bindID" check:"id"` }
ArgsCheckBind 检查一组标签是否数据该绑定?参数
type ArgsCreate ¶
type ArgsCreate struct { //绑定ID BindID int64 `json:"bindID" check:"id"` //名称 Name string `json:"name" check:"name"` }
ArgsCreate 创建标签参数
type ArgsDeleteByID ¶
type ArgsDeleteByID struct { //ID ID int64 `json:"id" check:"id"` //绑定ID // 用于验证 BindID int64 `json:"bindID" check:"id" empty:"true"` }
ArgsDeleteByID 删除标签参数
type ArgsGetIDs ¶
type ArgsGetIDs struct { //ID列 IDs pq.Int64Array `json:"ids" check:"ids"` //绑定ID // 用于验证 BindID int64 `json:"bindID"` //反馈限制 Limit int `json:"limit"` }
ArgsGetIDs 查询一组ID数据参数
type ArgsGetList ¶
type ArgsGetList struct { //分页 Pages CoreSQLPages.ArgsDataList `json:"pages"` //绑定ID BindID int64 `json:"bindID" check:"id" empty:"true"` //搜索标签 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetList 查询列表参数
type ArgsUpdateByID ¶
type ArgsUpdateByID struct { //ID ID int64 `json:"id" check:"id"` //绑定ID // 用于验证 BindID int64 `json:"bindID" check:"id" empty:"true"` //名称 Name string `json:"name" check:"name"` }
ArgsUpdateByID 修改标签参数
type FieldsTag ¶
type FieldsTag struct { //基础 ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //更新时间 UpdateAt time.Time `db:"update_at" json:"updateAt"` //来源ID BindID int64 `db:"bind_id" json:"bindID"` //名称 Name string `db:"name" json:"name"` }
FieldsTag 标签配置
type Tag ¶
type Tag struct { //标签主表名称 TagTableName string }
Tag 对象结构
func (*Tag) CheckBind ¶
func (t *Tag) CheckBind(args *ArgsCheckBind) (err error)
CheckBind 检查一组标签是否数据该绑定?
func (*Tag) GetByIDNames ¶
GetByIDNames 获取一组数据map
func (*Tag) GetByIDs ¶
func (t *Tag) GetByIDs(args *ArgsGetIDs) (dataList []FieldsTag, err error)
GetByIDs 查询一组ID数据
Click to show internal directories.
Click to hide internal directories.