Documentation ¶
Index ¶
- Variables
- func CloseRelated()
- func IsNotFound(err error) bool
- func OpenRelated()
- func RelationBlocklistMgr(db *gorm.DB) *_RelationBlocklistMgr
- type Condition
- func (c *Condition) And(column string, cases string, value interface{}) *Condition
- func (c *Condition) AndWithCondition(condition bool, column string, cases string, value interface{}) *Condition
- func (c *Condition) Get() (where string, out []interface{})
- func (c *Condition) Or(column string, cases string, value interface{}) *Condition
- func (c *Condition) OrWithCondition(condition bool, column string, cases string, value interface{}) *Condition
- type Option
- type RelationBlocklist
Constants ¶
This section is empty.
Variables ¶
View Source
var RelationBlocklistColumns = struct { UID string InvitedUID string CreateTime string DeleteTime string }{ UID: "uid", InvitedUID: "invited_uid", CreateTime: "create_time", DeleteTime: "delete_time", }
RelationBlocklistColumns get sql column name.获取数据库列名
Functions ¶
func RelationBlocklistMgr ¶
RelationBlocklistMgr open func
Types ¶
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
自定义sql查询
func (*Condition) AndWithCondition ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option overrides behavior of Connect.
type RelationBlocklist ¶
type RelationBlocklist struct { UID int64 `gorm:"column:uid;type:bigint(20);not null"` InvitedUID int64 `gorm:"column:invited_uid;type:bigint(20);not null;comment:'拉黑uid'"` // 拉黑uid CreateTime int `gorm:"column:create_time;type:int(11);not null;comment:'创建时间'"` // 创建时间 DeleteTime int `gorm:"column:delete_time;type:int(11);not null;default:0;comment:'删除时间'"` // 删除时间 }
RelationBlocklist [...]
Click to show internal directories.
Click to hide internal directories.