Documentation ¶
Index ¶
- type ClusterBaseRepo
- func (repo *ClusterBaseRepo) Close()
- func (repo *ClusterBaseRepo) Create(ctx context.Context, cluster model.ClusterModel) (model.ClusterModel, error)
- func (repo *ClusterBaseRepo) Delete(ctx context.Context, clusterId uint64) error
- func (repo *ClusterBaseRepo) DeleteByCreator(ctx context.Context, userId uint64) error
- func (repo *ClusterBaseRepo) Get(ctx context.Context, clusterId uint64) (model.ClusterModel, error)
- func (repo *ClusterBaseRepo) GetAny(ctx context.Context, where map[string]interface{}) ([]*model.ClusterModel, error)
- func (repo *ClusterBaseRepo) GetList(ctx context.Context) ([]*model.ClusterList, error)
- func (repo *ClusterBaseRepo) Update(ctx context.Context, update map[string]interface{}, clusterId uint64) (*model.ClusterModel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterBaseRepo ¶
type ClusterBaseRepo struct {
// contains filtered or unexported fields
}
func NewClusterRepo ¶
func NewClusterRepo(db *gorm.DB) *ClusterBaseRepo
func (*ClusterBaseRepo) Create ¶
func (repo *ClusterBaseRepo) Create(ctx context.Context, cluster model.ClusterModel) (model.ClusterModel, error)
func (*ClusterBaseRepo) Delete ¶
func (repo *ClusterBaseRepo) Delete(ctx context.Context, clusterId uint64) error
func (*ClusterBaseRepo) DeleteByCreator ¶
func (repo *ClusterBaseRepo) DeleteByCreator(ctx context.Context, userId uint64) error
func (*ClusterBaseRepo) Get ¶
func (repo *ClusterBaseRepo) Get(ctx context.Context, clusterId uint64) (model.ClusterModel, error)
func (*ClusterBaseRepo) GetAny ¶
func (repo *ClusterBaseRepo) GetAny(ctx context.Context, where map[string]interface{}) ([]*model.ClusterModel, error)
func (*ClusterBaseRepo) GetList ¶
func (repo *ClusterBaseRepo) GetList(ctx context.Context) ([]*model.ClusterList, error)
func (*ClusterBaseRepo) Update ¶
func (repo *ClusterBaseRepo) Update( ctx context.Context, update map[string]interface{}, clusterId uint64, ) (*model.ClusterModel, error)
Click to show internal directories.
Click to hide internal directories.