14 lines
361 B
Go
14 lines
361 B
Go
package usecase
|
|
|
|
import "context"
|
|
|
|
// MatchmakingUseCase 定義配對相關的業務邏輯介面
|
|
type MatchmakingUseCase interface {
|
|
// JoinQueue 加入配對佇列
|
|
JoinQueue(ctx context.Context, uid string) (status string, err error)
|
|
|
|
// GetStatus 查詢配對狀態
|
|
GetStatus(ctx context.Context, uid string) (status string, roomID string, err error)
|
|
}
|
|
|