mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 19:39:31 +08:00
- domain/host.go: Host/VirtualMachine 结构体、Usecase/Repo 接口、请求/响应类型 - domain/team_host.go: TeamHost 接口和类型 - domain/publichost.go: PublicHost 接口 - domain/terminal.go: 终端相关类型
18 lines
349 B
Go
18 lines
349 B
Go
package domain
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/chaitin/MonkeyCode/backend/db"
|
|
)
|
|
|
|
// PublicHostUsecase 公共主机业务逻辑接口
|
|
type PublicHostUsecase interface {
|
|
PickHost(ctx context.Context) (*Host, error)
|
|
}
|
|
|
|
// PublicHostRepo 公共主机数据访问接口
|
|
type PublicHostRepo interface {
|
|
All(ctx context.Context) ([]*db.Host, error)
|
|
}
|