package configcenter

import (
	"github.com/tidbcloud/devops/api"
	"github.com/tidbcloud/devops/entity"
)

type ListAttributesReq struct {
	ParamName string `form:"param_name"`
	Version   string `form:"version"`
	Component string `form:"component"`
}

type ListAttributesResp struct {
	api.BaseResp
	Attributes []*entity.ConfigAttributes `json:"items"`
}

//	type AddAttributeReq struct {
//		ParamName      string `json:"param_name"`
//		AttributeName  string `json:"attribute_name"`
//		AttributeValue string `json:"attribute_value"`
//		Version        string `json:"version"`
//	}

type AddAttributeReq entity.ConfigAttributes

type AddAttributesResp struct {
	api.BaseResp
}

type CopyFromVersionReq struct {
	FromVersion string `json:"from_version"`
	ToVersion   string `json:"to_version"`
}

type CopyFromVersionResp struct {
	api.BaseResp
}

type ModifyReq entity.ConfigAttributes
