app

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package app provides application service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountQuotaDetailDTO

type AccountQuotaDetailDTO struct {
	UserName     string `json:"user_name"`
	UsedQuota    int    `json:"used_quota"`
	TotalQuota   int    `json:"total_quota"`
	ComputeType  string `json:"compute_type"`
	QuotaBalance int    `json:"quota_balance"`
}

AccountQuotaDetailDTO is a struct used for account quota detail.

type CmdToUserQuotaUpdate

type CmdToUserQuotaUpdate struct {
	Index      domain.ComputilityAccountRecordIndex
	QuotaCount int
}

CmdToUserQuotaUpdate is a struct used for user quota update.

type ComputilityAppService

type ComputilityAppService interface {
	GetAccountDetail(domain.ComputilityAccountIndex) (AccountQuotaDetailDTO, error)
}

ComputilityAppService is an interface for computility internal application service

func NewComputilityAppService

NewComputilityAppService creates a new instance of ComputilityAppService

type ComputilityInternalAppService

type ComputilityInternalAppService interface {
	UserQuotaConsume(CmdToUserQuotaUpdate) error
}

ComputilityInternalAppService is an interface for computility internal application service

func NewComputilityInternalAppService

NewComputilityInternalAppService creates a new instance of ComputilityInternalAppService

Jump to

Keyboard shortcuts

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