package system

import (
	"context"
	"server/internal/service"

	"server/api/system/v1"
)

func (c *ControllerV1) SystemVersion(ctx context.Context, req *v1.SystemVersionReq) (res *v1.SystemVersionRes, err error) {
	version, err := service.System().Version(ctx)
	if err != nil {
		return nil, err
	}
	return &v1.SystemVersionRes{Ios: version.Ios, Android: version.Android}, nil
}
