Documentation ¶
Index ¶
- type CloudAccountService
- func (s CloudAccountService) Add(dataObj *example.CloudAccount) error
- func (s CloudAccountService) Count() (int64, error)
- func (s CloudAccountService) Delete(ids []uint) error
- func (s CloudAccountService) Exist(filter map[string]interface{}) bool
- func (s CloudAccountService) Find(filter map[string]interface{}, data *example.CloudAccount) error
- func (s CloudAccountService) GetCloudAccountsById(cloudAccountIds []uint) ([]*example.CloudAccount, error)
- func (s CloudAccountService) List(req *request.CloudAccountListReq) ([]*example.CloudAccount, error)
- func (s CloudAccountService) ListAll() (list []*example.CloudAccount, err error)
- func (s CloudAccountService) ListCount(req *request.CloudAccountListReq) (int64, error)
- func (s CloudAccountService) Update(dataObj *example.CloudAccount) error
- type ServiceGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudAccountService ¶
type CloudAccountService struct{}
func (CloudAccountService) Add ¶
func (s CloudAccountService) Add(dataObj *example.CloudAccount) error
Add 添加资源
func (CloudAccountService) Delete ¶
func (s CloudAccountService) Delete(ids []uint) error
Delete 批量删除
func (CloudAccountService) Exist ¶
func (s CloudAccountService) Exist(filter map[string]interface{}) bool
Exist 判断资源是否存在
func (CloudAccountService) Find ¶
func (s CloudAccountService) Find(filter map[string]interface{}, data *example.CloudAccount) error
Find 获取单个资源
func (CloudAccountService) GetCloudAccountsById ¶
func (s CloudAccountService) GetCloudAccountsById(cloudAccountIds []uint) ([]*example.CloudAccount, error)
GetCloudAccountsById 根据接口ID获取接口列表
func (CloudAccountService) List ¶
func (s CloudAccountService) List(req *request.CloudAccountListReq) ([]*example.CloudAccount, error)
List 获取数据列表
func (CloudAccountService) ListAll ¶
func (s CloudAccountService) ListAll() (list []*example.CloudAccount, err error)
List 获取数据列表
func (CloudAccountService) ListCount ¶
func (s CloudAccountService) ListCount(req *request.CloudAccountListReq) (int64, error)
ListCount 获取数据总数
func (CloudAccountService) Update ¶
func (s CloudAccountService) Update(dataObj *example.CloudAccount) error
Update 更新资源
type ServiceGroup ¶
type ServiceGroup struct {
CloudAccountService
}
Click to show internal directories.
Click to hide internal directories.