Documentation ¶
Index ¶
- type AppStoreDataService
- func (u *AppStoreDataService) AddAppStore(appStore *model.AppStore) (int64, error)
- func (u *AppStoreDataService) AddInstallNum(appID int64) error
- func (u *AppStoreDataService) AddViewNum(appID int64) error
- func (u *AppStoreDataService) DeleteAppStore(appStoreID int64) error
- func (u *AppStoreDataService) FindAllAppStore() ([]model.AppStore, error)
- func (u *AppStoreDataService) FindAppStoreByID(appStoreID int64) (*model.AppStore, error)
- func (u *AppStoreDataService) GetInstallNum(appID int64) int64
- func (u *AppStoreDataService) GetViewNum(appID int64) int64
- func (u *AppStoreDataService) UpdateAppStore(appStore *model.AppStore) error
- type IAppStoreDataService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppStoreDataService ¶
type AppStoreDataService struct { //注意:这里是 IAppStoreRepository 类型 AppStoreRepository repository.IAppStoreRepository }
func (*AppStoreDataService) AddAppStore ¶
func (u *AppStoreDataService) AddAppStore(appStore *model.AppStore) (int64, error)
插入
func (*AppStoreDataService) AddInstallNum ¶
func (u *AppStoreDataService) AddInstallNum(appID int64) error
安装数量统计
func (*AppStoreDataService) AddViewNum ¶
func (u *AppStoreDataService) AddViewNum(appID int64) error
添加浏览统计
func (*AppStoreDataService) DeleteAppStore ¶
func (u *AppStoreDataService) DeleteAppStore(appStoreID int64) error
删除
func (*AppStoreDataService) FindAllAppStore ¶
func (u *AppStoreDataService) FindAllAppStore() ([]model.AppStore, error)
查找
func (*AppStoreDataService) FindAppStoreByID ¶
func (u *AppStoreDataService) FindAppStoreByID(appStoreID int64) (*model.AppStore, error)
查找
func (*AppStoreDataService) GetInstallNum ¶
func (u *AppStoreDataService) GetInstallNum(appID int64) int64
查询安装数量
func (*AppStoreDataService) GetViewNum ¶
func (u *AppStoreDataService) GetViewNum(appID int64) int64
获取浏览量
func (*AppStoreDataService) UpdateAppStore ¶
func (u *AppStoreDataService) UpdateAppStore(appStore *model.AppStore) error
更新
type IAppStoreDataService ¶
type IAppStoreDataService interface { AddAppStore(*model.AppStore) (int64, error) DeleteAppStore(int64) error UpdateAppStore(*model.AppStore) error FindAppStoreByID(int64) (*model.AppStore, error) FindAllAppStore() ([]model.AppStore, error) //统计服务 AddInstallNum(int64) error GetInstallNum(int64) int64 AddViewNum(int64) error GetViewNum(int64) int64 }
这里是接口类型
func NewAppStoreDataService ¶
func NewAppStoreDataService(appStoreRepository repository.IAppStoreRepository, clientSet *kubernetes.Clientset) IAppStoreDataService
创建 注意:返回值 IAppStoreDataService 接口类型
Click to show internal directories.
Click to hide internal directories.