package com.microservices.mon.k8s.domain;

import com.alibaba.fastjson2.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("应用功能")
public class ApplicationFunction {
    @ApiModelProperty(value = "应用功能标识")
    private String key;
    @ApiModelProperty(value = "应用功能名称")
    private String name;
    @ApiModelProperty(value = "应用功能访问所需参数")
    private JSONObject variables;

    public void setKeyAndName(ApplicationFunctionType applicationFunctionType) {
        this.key = applicationFunctionType.getKey();
        this.name = applicationFunctionType.getName();
    }
}
