Documentation ¶
Index ¶
- Constants
- type SpaceDao
- func (d *SpaceDao) DeleteSpaceById(id uint32) error
- func (d *SpaceDao) FindAllSpaceByUserId(userId uint32) (spaces []model.Space, err error)
- func (d *SpaceDao) FindByIdAndUserId(id, userId uint32) (space *model.Space, err error)
- func (d *SpaceDao) FindByUserIdAndName(userId uint32, name string) error
- func (d *SpaceDao) FindCountByUserId(userId uint32) (count uint32, err error)
- func (d *SpaceDao) Insert(space *model.Space) (uint32, error)
- func (d *SpaceDao) UpdateNameById(name string, id uint32) error
- func (d *SpaceDao) UpdateStatusById(id, status uint32) error
- type SpaceTemplateDao
- func (s *SpaceTemplateDao) GetAllSpec() (specs []model.SpaceSpec, err error)
- func (s *SpaceTemplateDao) GetAllTmpl() (tmpls []model.SpaceTemplate, err error)
- func (s *SpaceTemplateDao) GetAllTmplKind() (kinds []model.TmplKind, err error)
- func (s *SpaceTemplateDao) GetAllUsingTmpl() (tmpls []model.SpaceTemplate, err error)
- type UserDao
Constants ¶
View Source
const ( TmplUsing = iota TmplDeleted )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpaceDao ¶
type SpaceDao struct {
// contains filtered or unexported fields
}
func NewSpaceDao ¶
func NewSpaceDao() *SpaceDao
func (*SpaceDao) DeleteSpaceById ¶
func (*SpaceDao) FindAllSpaceByUserId ¶
func (*SpaceDao) FindByIdAndUserId ¶
func (*SpaceDao) FindByUserIdAndName ¶
FindByUserIdAndName TODO 增加联合索引 idx_userid_name 根据userid和name查询, 用于查询某个用户下的space名称是否重复
func (*SpaceDao) FindCountByUserId ¶
func (*SpaceDao) UpdateStatusById ¶
type SpaceTemplateDao ¶
type SpaceTemplateDao struct {
// contains filtered or unexported fields
}
func NewSpaceTemplateDao ¶
func NewSpaceTemplateDao() *SpaceTemplateDao
func (*SpaceTemplateDao) GetAllSpec ¶
func (s *SpaceTemplateDao) GetAllSpec() (specs []model.SpaceSpec, err error)
func (*SpaceTemplateDao) GetAllTmpl ¶
func (s *SpaceTemplateDao) GetAllTmpl() (tmpls []model.SpaceTemplate, err error)
func (*SpaceTemplateDao) GetAllTmplKind ¶
func (s *SpaceTemplateDao) GetAllTmplKind() (kinds []model.TmplKind, err error)
func (*SpaceTemplateDao) GetAllUsingTmpl ¶
func (s *SpaceTemplateDao) GetAllUsingTmpl() (tmpls []model.SpaceTemplate, err error)
type UserDao ¶
type UserDao struct {
// contains filtered or unexported fields
}
func NewUserDao ¶
func NewUserDao() *UserDao
func (*UserDao) FindByEmail ¶
func (*UserDao) FindByUsername ¶
Click to show internal directories.
Click to hide internal directories.