example

package
v0.0.0-...-c9be414 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudAccountService

type CloudAccountService struct{}

func (CloudAccountService) Add

Add 添加资源

func (CloudAccountService) Count

func (s CloudAccountService) Count() (int64, error)

Count 获取数据总数

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

List 获取数据列表

func (CloudAccountService) ListAll

func (s CloudAccountService) ListAll() (list []*example.CloudAccount, err error)

List 获取数据列表

func (CloudAccountService) ListCount

ListCount 获取数据总数

func (CloudAccountService) Update

func (s CloudAccountService) Update(dataObj *example.CloudAccount) error

Update 更新资源

type ServiceGroup

type ServiceGroup struct {
	CloudAccountService
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL