Documentation ¶
Index ¶
- Constants
- func HasSubDaoTypeLives() []*dot.TypeLives
- func NoticeDaoTypeLives() []*dot.TypeLives
- func SubDaoTypeLives() []*dot.TypeLives
- type HasSubDao
- func (c *HasSubDao) Count(conn orm.DB, condition string, params ...interface{}) (count int, err error)
- func (c *HasSubDao) Delete(conn orm.DB, m *model.HasSub) (err error)
- func (c *HasSubDao) DeleteByID(conn orm.DB, id string) (err error)
- func (c *HasSubDao) DeleteByIDs(conn orm.DB, ids []string, oneMax int) (err error)
- func (c *HasSubDao) DeleteReturn(conn orm.DB, m *model.HasSub) (mnew *model.HasSub, err error)
- func (c *HasSubDao) GetByID(conn orm.DB, id string) (m *model.HasSub, err error)
- func (c *HasSubDao) GetByIDWithLock(conn orm.DB, id string) (m *model.HasSub, err error)
- func (c *HasSubDao) GetLockByID(conn orm.DB, ids ...string) (ms []*model.HasSub, err error)
- func (c *HasSubDao) GetLockByModelID(conn orm.DB, ms ...*model.HasSub) error
- func (c *HasSubDao) Insert(conn orm.DB, m *model.HasSub) (err error)
- func (c *HasSubDao) InsertReturn(conn orm.DB, m *model.HasSub) (mnew *model.HasSub, err error)
- func (c *HasSubDao) List(conn orm.DB) (ms []*model.HasSub, err error)
- func (c *HasSubDao) ListWithLock(conn orm.DB) (ms []*model.HasSub, err error)
- func (c *HasSubDao) Query(conn orm.DB, condition string, params ...interface{}) (ms []*model.HasSub, err error)
- func (c *HasSubDao) QueryOne(conn orm.DB, condition string, params ...interface{}) (m *model.HasSub, err error)
- func (c *HasSubDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.HasSub, err error)
- func (c *HasSubDao) QueryPage(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.HasSub, err error)
- func (c *HasSubDao) QueryPageWithCount(conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}) (ms []*model.HasSub, count int, err error)
- func (c *HasSubDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.HasSub, err error)
- func (c *HasSubDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.HasSub, err error)
- func (c *HasSubDao) Update(conn orm.DB, m *model.HasSub) (err error)
- func (c *HasSubDao) UpdateHasSubSomeColumn(conn orm.DB, ids []string) (err error)
- func (c *HasSubDao) UpdateReturn(conn orm.DB, m *model.HasSub) (mnew *model.HasSub, err error)
- func (c *HasSubDao) Upsert(conn orm.DB, m *model.HasSub) (err error)
- func (c *HasSubDao) UpsertReturn(conn orm.DB, m *model.HasSub) (mnew *model.HasSub, err error)
- type NoticeDao
- func (c *NoticeDao) Count(conn orm.DB, condition string, params ...interface{}) (count int, err error)
- func (c *NoticeDao) Delete(conn orm.DB, m *model.Notice) (err error)
- func (c *NoticeDao) DeleteByID(conn orm.DB, id string) (err error)
- func (c *NoticeDao) DeleteByIDs(conn orm.DB, ids []string, oneMax int) (err error)
- func (c *NoticeDao) DeleteReturn(conn orm.DB, m *model.Notice) (mnew *model.Notice, err error)
- func (c *NoticeDao) GetByID(conn orm.DB, id string) (m *model.Notice, err error)
- func (c *NoticeDao) GetByIDWithLock(conn orm.DB, id string) (m *model.Notice, err error)
- func (c *NoticeDao) GetLockByID(conn orm.DB, ids ...string) (ms []*model.Notice, err error)
- func (c *NoticeDao) GetLockByModelID(conn orm.DB, ms ...*model.Notice) error
- func (c *NoticeDao) Insert(conn orm.DB, m *model.Notice) (err error)
- func (c *NoticeDao) InsertReturn(conn orm.DB, m *model.Notice) (mnew *model.Notice, err error)
- func (c *NoticeDao) List(conn orm.DB) (ms []*model.Notice, err error)
- func (c *NoticeDao) ListWithLock(conn orm.DB) (ms []*model.Notice, err error)
- func (c *NoticeDao) Query(conn orm.DB, condition string, params ...interface{}) (ms []*model.Notice, err error)
- func (c *NoticeDao) QueryOne(conn orm.DB, condition string, params ...interface{}) (m *model.Notice, err error)
- func (c *NoticeDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.Notice, err error)
- func (c *NoticeDao) QueryPage(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Notice, err error)
- func (c *NoticeDao) QueryPageWithCount(conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}) (ms []*model.Notice, count int, err error)
- func (c *NoticeDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Notice, err error)
- func (c *NoticeDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.Notice, err error)
- func (c *NoticeDao) Update(conn orm.DB, m *model.Notice) (err error)
- func (c *NoticeDao) UpdateNoticeSomeColumn(conn orm.DB, ids []string) (err error)
- func (c *NoticeDao) UpdateReturn(conn orm.DB, m *model.Notice) (mnew *model.Notice, err error)
- func (c *NoticeDao) Upsert(conn orm.DB, m *model.Notice) (err error)
- func (c *NoticeDao) UpsertReturn(conn orm.DB, m *model.Notice) (mnew *model.Notice, err error)
- type SubDao
- func (c *SubDao) Count(conn orm.DB, condition string, params ...interface{}) (count int, err error)
- func (c *SubDao) Delete(conn orm.DB, m *model.Sub) (err error)
- func (c *SubDao) DeleteByID(conn orm.DB, id string) (err error)
- func (c *SubDao) DeleteByIDs(conn orm.DB, ids []string, oneMax int) (err error)
- func (c *SubDao) DeleteReturn(conn orm.DB, m *model.Sub) (mnew *model.Sub, err error)
- func (c *SubDao) GetByID(conn orm.DB, id string) (m *model.Sub, err error)
- func (c *SubDao) GetByIDWithLock(conn orm.DB, id string) (m *model.Sub, err error)
- func (c *SubDao) GetLockByID(conn orm.DB, ids ...string) (ms []*model.Sub, err error)
- func (c *SubDao) GetLockByModelID(conn orm.DB, ms ...*model.Sub) error
- func (c *SubDao) Insert(conn orm.DB, m *model.Sub) (err error)
- func (c *SubDao) InsertReturn(conn orm.DB, m *model.Sub) (mnew *model.Sub, err error)
- func (c *SubDao) List(conn orm.DB) (ms []*model.Sub, err error)
- func (c *SubDao) ListWithLock(conn orm.DB) (ms []*model.Sub, err error)
- func (c *SubDao) Query(conn orm.DB, condition string, params ...interface{}) (ms []*model.Sub, err error)
- func (c *SubDao) QueryOne(conn orm.DB, condition string, params ...interface{}) (m *model.Sub, err error)
- func (c *SubDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.Sub, err error)
- func (c *SubDao) QueryPage(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Sub, err error)
- func (c *SubDao) QueryPageWithCount(conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}) (ms []*model.Sub, count int, err error)
- func (c *SubDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Sub, err error)
- func (c *SubDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.Sub, err error)
- func (c *SubDao) Update(conn orm.DB, m *model.Sub) (err error)
- func (c *SubDao) UpdateReturn(conn orm.DB, m *model.Sub) (mnew *model.Sub, err error)
- func (c *SubDao) UpdateSubSomeColumn(conn orm.DB, ids []string) (err error)
- func (c *SubDao) Upsert(conn orm.DB, m *model.Sub) (err error)
- func (c *SubDao) UpsertReturn(conn orm.DB, m *model.Sub) (mnew *model.Sub, err error)
Constants ¶
const HasSubDaoTypeID = "3b1ac788-78e2-4172-9fa2-709b021d7e12"
const NoticeDaoTypeID = "87ef34f7-6f7e-441c-959e-0505430d0bee"
const SubDaoTypeID = "6e3e5751-a618-410b-b06a-4ca960f2f4ac"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HasSubDao ¶
func (*HasSubDao) DeleteByID ¶
if delete nothing, then return pg.ErrNoRows
func (*HasSubDao) DeleteByIDs ¶
if delete nothing, then return pg.ErrNoRows
func (*HasSubDao) DeleteReturn ¶
if delete nothing, then return pg.ErrNoRows
func (*HasSubDao) GetByIDWithLock ¶
if find nothing, return pg.ErrNoRows
func (*HasSubDao) GetLockByID ¶
update before you must get OptimisticLockVersion value
func (*HasSubDao) GetLockByModelID ¶
func (*HasSubDao) InsertReturn ¶
if insert nothing, then return pg.ErrNoRows
func (*HasSubDao) ListWithLock ¶
if find nothing, return pg.ErrNoRows
func (*HasSubDao) QueryOneWithLock ¶
func (c *HasSubDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.HasSub, err error)
if find nothing, return pg.ErrNoRows
func (*HasSubDao) QueryPageWithCount ¶
func (c *HasSubDao) QueryPageWithCount( conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}, ) (ms []*model.HasSub, count int, err error)
count counts valid records which after conditions filter, rather than whole table's count
func (*HasSubDao) QueryPageWithLock ¶
func (c *HasSubDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.HasSub, err error)
if find nothing, return pg.ErrNoRows
func (*HasSubDao) QueryWithLock ¶
func (c *HasSubDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.HasSub, err error)
if find nothing, return pg.ErrNoRows
func (*HasSubDao) UpdateHasSubSomeColumn ¶
example,please edit it update designated column with Optimistic Lock
func (*HasSubDao) UpdateReturn ¶
if update nothing, then return pg.ErrNoRows
type NoticeDao ¶
func (*NoticeDao) DeleteByID ¶
if delete nothing, then return pg.ErrNoRows
func (*NoticeDao) DeleteByIDs ¶
if delete nothing, then return pg.ErrNoRows
func (*NoticeDao) DeleteReturn ¶
if delete nothing, then return pg.ErrNoRows
func (*NoticeDao) GetByIDWithLock ¶
if find nothing, return pg.ErrNoRows
func (*NoticeDao) GetLockByID ¶
update before you must get OptimisticLockVersion value
func (*NoticeDao) GetLockByModelID ¶
func (*NoticeDao) InsertReturn ¶
if insert nothing, then return pg.ErrNoRows
func (*NoticeDao) ListWithLock ¶
if find nothing, return pg.ErrNoRows
func (*NoticeDao) QueryOneWithLock ¶
func (c *NoticeDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.Notice, err error)
if find nothing, return pg.ErrNoRows
func (*NoticeDao) QueryPageWithCount ¶
func (c *NoticeDao) QueryPageWithCount( conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}, ) (ms []*model.Notice, count int, err error)
count counts valid records which after conditions filter, rather than whole table's count
func (*NoticeDao) QueryPageWithLock ¶
func (c *NoticeDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Notice, err error)
if find nothing, return pg.ErrNoRows
func (*NoticeDao) QueryWithLock ¶
func (c *NoticeDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.Notice, err error)
if find nothing, return pg.ErrNoRows
func (*NoticeDao) UpdateNoticeSomeColumn ¶
example,please edit it update designated column with Optimistic Lock
func (*NoticeDao) UpdateReturn ¶
if update nothing, then return pg.ErrNoRows
type SubDao ¶
func (*SubDao) DeleteByID ¶
if delete nothing, then return pg.ErrNoRows
func (*SubDao) DeleteByIDs ¶
if delete nothing, then return pg.ErrNoRows
func (*SubDao) DeleteReturn ¶
if delete nothing, then return pg.ErrNoRows
func (*SubDao) GetByIDWithLock ¶
if find nothing, return pg.ErrNoRows
func (*SubDao) GetLockByID ¶
update before you must get OptimisticLockVersion value
func (*SubDao) GetLockByModelID ¶
func (*SubDao) InsertReturn ¶
if insert nothing, then return pg.ErrNoRows
func (*SubDao) ListWithLock ¶
if find nothing, return pg.ErrNoRows
func (*SubDao) QueryOneWithLock ¶
func (c *SubDao) QueryOneWithLock(conn orm.DB, condition string, params ...interface{}) (m *model.Sub, err error)
if find nothing, return pg.ErrNoRows
func (*SubDao) QueryPageWithCount ¶
func (c *SubDao) QueryPageWithCount( conn orm.DB, pageSize, pageNum int, condition string, params ...interface{}, ) (ms []*model.Sub, count int, err error)
count counts valid records which after conditions filter, rather than whole table's count
func (*SubDao) QueryPageWithLock ¶
func (c *SubDao) QueryPageWithLock(conn orm.DB, pageSize int, page int, condition string, params ...interface{}) (ms []*model.Sub, err error)
if find nothing, return pg.ErrNoRows
func (*SubDao) QueryWithLock ¶
func (c *SubDao) QueryWithLock(conn orm.DB, condition string, params ...interface{}) (ms []*model.Sub, err error)
if find nothing, return pg.ErrNoRows
func (*SubDao) UpdateReturn ¶
if update nothing, then return pg.ErrNoRows
func (*SubDao) UpdateSubSomeColumn ¶
example,please edit it update designated column with Optimistic Lock