Documentation ¶
Index ¶
- Variables
- type Api
- type ApiModel
- func (m *ApiModel) Delete(id ...int64) error
- func (m *ApiModel) FindMany(ids []int64, workers ...int) (list []*Api)
- func (m *ApiModel) FindManyByPaths(oKeys []string, workers ...int) (list []*Api)
- func (m *ApiModel) FindOne(id int64) (*Api, error)
- func (m *ApiModel) FindOneByPath(path string) (*Api, error)
- func (m *ApiModel) Insert(data Api) (sql.Result, error)
- func (m *ApiModel) TxDelete(tx sqlx.TxSession, id ...int64) error
- func (m *ApiModel) TxInsert(tx sqlx.TxSession, data Api) (sql.Result, error)
- func (m *ApiModel) TxUpdate(tx sqlx.TxSession, data Api) error
- func (m *ApiModel) TxUpdatePartial(tx sqlx.TxSession, ms ...g.Map) (err error)
- func (m *ApiModel) Update(data Api) error
- func (m *ApiModel) UpdatePartial(ms ...g.Map) (err error)
- type Memorial
- type MemorialModel
- func (m *MemorialModel) Delete(id ...int64) error
- func (m *MemorialModel) FindMany(ids []int64, workers ...int) (list []*Memorial)
- func (m *MemorialModel) FindOne(id int64) (*Memorial, error)
- func (m *MemorialModel) Insert(data Memorial) (sql.Result, error)
- func (m *MemorialModel) TxDelete(tx sqlx.TxSession, id ...int64) error
- func (m *MemorialModel) TxInsert(tx sqlx.TxSession, data Memorial) (sql.Result, error)
- func (m *MemorialModel) TxUpdate(tx sqlx.TxSession, data Memorial) error
- func (m *MemorialModel) TxUpdatePartial(tx sqlx.TxSession, ms ...g.Map) (err error)
- func (m *MemorialModel) Update(data Memorial) error
- func (m *MemorialModel) UpdatePartial(ms ...g.Map) (err error)
- type User
- type UserModel
- func (m *UserModel) Delete(id ...int64) error
- func (m *UserModel) FindMany(ids []int64, workers ...int) (list []*User)
- func (m *UserModel) FindManyByOpenids(oKeys []string, workers ...int) (list []*User)
- func (m *UserModel) FindOne(id int64) (*User, error)
- func (m *UserModel) FindOneByOpenid(openid string) (*User, error)
- func (m *UserModel) Insert(data User) (sql.Result, error)
- func (m *UserModel) TxDelete(tx sqlx.TxSession, id ...int64) error
- func (m *UserModel) TxInsert(tx sqlx.TxSession, data User) (sql.Result, error)
- func (m *UserModel) TxUpdate(tx sqlx.TxSession, data User) error
- func (m *UserModel) TxUpdatePartial(tx sqlx.TxSession, ms ...g.Map) (err error)
- func (m *UserModel) Update(data User) error
- func (m *UserModel) UpdatePartial(ms ...g.Map) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type ApiModel ¶
type ApiModel struct { sqlx.CachedConn // contains filtered or unexported fields }
func NewApiModel ¶
func NewApiModel(conn sqlx.Conn, clusterConf cache.ClusterConf) *ApiModel
func (*ApiModel) FindManyByPaths ¶
func (*ApiModel) TxUpdatePartial ¶
type Memorial ¶
type Memorial struct { Id int64 `db:"id" json:"id"` UserId int64 `db:"user_id" json:"userId"` HeadImg string `db:"head_img" json:"headImg"` NameOne string `db:"name_one" json:"nameOne"` RelationOne string `db:"relation_one" json:"relationOne"` NameTwo string `db:"name_two" json:"nameTwo"` RelationTwo string `db:"relation_two" json:"relationTwo"` CreateTime time.Time `db:"create_time" json:"createTime"` // 创建时间 UpdateTime time.Time `db:"update_time" json:"updateTime"` // 更新时间 }
type MemorialModel ¶
type MemorialModel struct { sqlx.CachedConn // contains filtered or unexported fields }
func NewMemorialModel ¶
func NewMemorialModel(conn sqlx.Conn, clusterConf cache.ClusterConf) *MemorialModel
func (*MemorialModel) Delete ¶
func (m *MemorialModel) Delete(id ...int64) error
func (*MemorialModel) FindMany ¶
func (m *MemorialModel) FindMany(ids []int64, workers ...int) (list []*Memorial)
func (*MemorialModel) TxDelete ¶
func (m *MemorialModel) TxDelete(tx sqlx.TxSession, id ...int64) error
func (*MemorialModel) TxUpdate ¶
func (m *MemorialModel) TxUpdate(tx sqlx.TxSession, data Memorial) error
func (*MemorialModel) TxUpdatePartial ¶
func (*MemorialModel) Update ¶
func (m *MemorialModel) Update(data Memorial) error
func (*MemorialModel) UpdatePartial ¶
func (m *MemorialModel) UpdatePartial(ms ...g.Map) (err error)
type UserModel ¶
type UserModel struct { sqlx.CachedConn // contains filtered or unexported fields }
func NewUserModel ¶
func NewUserModel(conn sqlx.Conn, clusterConf cache.ClusterConf) *UserModel
func (*UserModel) FindManyByOpenids ¶
func (*UserModel) FindOneByOpenid ¶
func (*UserModel) TxUpdatePartial ¶
Click to show internal directories.
Click to hide internal directories.