package api

import (
	"github.com/gin-gonic/gin"

	"chaitin.cn/patronus/safeline-2/management/webserver/api/response"
	"chaitin.cn/patronus/safeline-2/management/webserver/pkg/constants"
)

type idsRequest struct {
	IDs []uint `json:"ids" form:"ids"`
}

type pageRequest struct {
	Page     int `json:"page"         form:"page,default=1"         binding:"min=1"`
	PageSize int `json:"page_size"    form:"page_size,default=10"   binding:"min=1"`
}

func GetVersion(c *gin.Context) {
	response.Success(c, gin.H{"version": constants.Version})
}

func GetUpgradeTips(ctx *gin.Context) {
	// External version check disabled - always return no upgrade needed
	response.Success(ctx, gin.H{"upgrade_tips": constants.NotUpgrade})
}
