package com.test.test.domain;

import com.test.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.test.common.annotation.Excel;

/**
 * 接口对象 test_api
 *
 * @author xiaoe
 * @date 2025-02-08
 */
public class TestApi extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 接口id
     */
    private Long id;

    /**
     * 接口名称
     */
    @Excel(name = "接口名称")
    private String name;

    /**
     * 接口请求类型
     */
    @Excel(name = "接口请求类型")
    private String method;

    /**
     * 接口路径
     */
    @Excel(name = "接口路径")
    private String uri;

    /**
     * 接口请求头
     */
    @Excel(name = "接口请求头")
    private String header;

    /**
     * 接口查询参数
     */
    @Excel(name = "接口查询参数")
    private String param;

    /**
     * 接口请求体
     */
    @Excel(name = "接口请求体")
    private String body;

    /**
     * 删除标志
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getMethod() {
        return method;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getUri() {
        return uri;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getHeader() {
        return header;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getParam() {
        return param;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getBody() {
        return body;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("method", getMethod())
                .append("uri", getUri())
                .append("header", getHeader())
                .append("param", getParam())
                .append("body", getBody())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
