package system

import (
	"context"

	"kra/pkg/server"
)

// SystemUsecase 系统配置用例
type SystemUsecase struct {
	diskMountPoints []string
}

// NewSystemUsecase 创建系统配置用例
func NewSystemUsecase() *SystemUsecase {
	// 默认磁盘挂载点，可通过配置扩展
	return &SystemUsecase{
		diskMountPoints: []string{"/"},
	}
}

// GetServerInfo 获取服务器信息
func (uc *SystemUsecase) GetServerInfo(ctx context.Context) (*server.Server, error) {
	return server.GetServerInfo(uc.diskMountPoints)
}

// SetDiskMountPoints 设置磁盘挂载点
func (uc *SystemUsecase) SetDiskMountPoints(mountPoints []string) {
	uc.diskMountPoints = mountPoints
}
