package forms

import (
	"github.com/gin-gonic/gin"
	"github.com/shopspring/decimal"
	"time"
)

var OK = gin.H{
	"status": "success",
}

type PageQuery struct {
	Page     int `form:"page,default=1"`
	PageSize int `form:"page_size,default=20"`
}
type UnitCostsInput struct {
	CostID   string            `json:"cost_id"`
	CostTime time.Time         `json:"cost_time"`
	Unit     string            `json:"unit"`
	Cost     int               `json:"cost"`
	Labels   map[string]string `json:"labels"`
}
type UnitCosts struct {
	CostID   string            `json:"cost_id"`
	CostTime time.Time         `json:"cost_time"`
	Unit     string            `json:"unit"`
	Cost     int               `json:"cost"`
	Labels   map[string]string `json:"labels"`

	CostPrice decimal.Decimal `json:"price"`
}

type UnitInfo struct {
	CostCenterOrgID uint             `json:"cost_center_org_id"`
	CostCenterName  string           `json:"cost_center_name"`
	UnitKey         string           `json:"unit" validate:"min=1"`
	Description     string           `json:"description"`
	Provider        string           `json:"provider"`
	Category        string           `json:"category"`
	Region          string           `json:"region"`
	SkuType         string           `json:"sku_type"`
	MeteringUnits   map[string]int32 `json:"metering_units"`
	Version         uint             `json:"version"`
}
type CostCenter struct {
	CostCenterOrgID uint   `json:"cost_center_org_id"`
	CostCenterName  string `json:"cost_center_name"`
	Description     string `json:"description"`
	Status          string `json:"status"`
}
