import {
    HTTPS_ERROR_PARAMS_EN_COLUMNS,
    HTTPS_PARAMS_EN_COLUMNS,
    HTTPS_URL_EN_COLUMNS,
    HTTPS_HEADER_COLUMNS,
    // HTTPS_PUBLIC_PARAMS_EN_COLUMNS,
    HTTPS_RETURN_PARAMS_EN_COLUMNS
} from "../../constant/en_list/index";

export const EN_DATA = [
    {
        title: "Request URL",
        columns: HTTPS_URL_EN_COLUMNS, //列表配置项
        data: [
            {
                environment: "Test environment",
                https: "http://dev.ow.f2b211.com/admapi"
            },
            {
                environment: "Formal environment",
                https: "http://ow.f2b211.com/admapi"
            }
        ]
    },
    {
        title: "Request header",
        columns: HTTPS_HEADER_COLUMNS, //列表配置项
        data: [
            {
                parameterName: "Request Method",
                parameterValues: "GET",
                parameterType: "string",
                parameterDescription: "Request method"
            },
            {
                parameterName: "Content-Type",
                parameterValues: "application/json",
                parameterType: "string",
                parameterDescription: "data format"
            },
            {
                parameterName: "Authorization",
                parameterValues: "Bearer MzgxYWRkZTU3MzhmZGNjZTViZTIxNjI0NTk0MDI5NTU3NmY4ZjliMDQwZmQyZjI1ZGU1YzRlMWU4NGFmYjk0OA",
                parameterType: "string",
                parameterDescription: "Token (obtained through basic API)"
            }
        ]
    },

    // {
    //     title: "Common request parameters", 公共参数
    //     columns: HTTPS_PUBLIC_PARAMS_EN_COLUMNS, //列表配置项
    //     data: [
    //         {
    //             parameterName: "category_id",
    //             parameterType: "integer",
    //             isItMandatory: "可选",
    //             exampleValue: "",
    //             parameterDescription: "Classification ID"
    //         },
    //         {
    //             parameterName: "language",
    //             parameterType: "string",
    //             isItMandatory: "可选",
    //             exampleValue: "zh-cn",
    //             parameterDescription: "语言"
    //         },
    //         {
    //             parameterName: "page",
    //             parameterType: "integer",
    //             isItMandatory: "可选",
    //             exampleValue: "1",
    //             parameterDescription: ""
    //         },
    //         {
    //             parameterName: "size",
    //             parameterType: "integer",
    //             isItMandatory: "可选",
    //             exampleValue: "50",
    //             parameterDescription: ""
    //         }
    //     ]
    // },

    {
        title: "Request parameter description",
        columns: HTTPS_PARAMS_EN_COLUMNS, //列表配置项
        data: [
            {
                parameterName: "parent_id",
                parameterType: "integer",
                isItMandatory: "no",
                exampleValue: "1",
                parameterDescription: "Parent ID (can be omitted)"
            },
            {
                parameterName: "language",
                parameterType: "string",
                isItMandatory: "no",
                exampleValue: "zh-cn",
                parameterDescription: "Language: zh cn (Chinese); En us (English)"
            },
            {
                parameterName: "page",
                parameterType: "integer ",
                isItMandatory: "no",
                exampleValue: "1",
                parameterDescription: "page number"
            },
            {
                parameterName: "size",
                parameterType: "integer ",
                isItMandatory: "no",
                exampleValue: "50",
                parameterDescription: "Number of items displayed per page (default 50, maximum 200)"
            }
        ]
    },
    {
        title: "Return parameter description",
        columns: HTTPS_RETURN_PARAMS_EN_COLUMNS, //列表配置项
        data: [
            {
                parameterInterface: "code",
                parameterType: "integer",
                exampleValue: "0 ",
                describe: "Equal to 0 is considered successful",
                id: 1
            },
            {
                parameterInterface: "msg",
                parameterType: "string ",
                exampleValue: "",
                describe: "Reminder information",
                id: 2
            },
            {
                parameterInterface: "data",
                parameterType: "object ",
                exampleValue: "",
                describe: "",
                id: 3,
                children: [
                    {
                        parameterInterface: "total",
                        parameterType: "integer ",
                        exampleValue: "1000",
                        describe: "Total number of articles",
                        id: 31
                    },
                    {
                        parameterInterface: "per_page",
                        parameterType: "integer ",
                        exampleValue: "50",
                        describe: "Number of output per page",
                        id: 32
                    },
                    {
                        parameterInterface: "current_page",
                        parameterType: "integer ",
                        exampleValue: "1",
                        describe: "Current page number",
                        id: 33
                    },
                    {
                        parameterInterface: "last_page",
                        parameterType: "integer ",
                        exampleValue: "1000",
                        describe: "Page",
                        id: 34
                    },
                    {
                        parameterInterface: "data",
                        parameterType: "array[object] ",
                        exampleValue: "",
                        describe: "",
                        id: 35,
                        children: [
                            {
                                parameterInterface: "id",
                                parameterType: "integer ",
                                exampleValue: "1",
                                describe: "ID",
                                id: 36
                            },
                            {
                                parameterInterface: "pid",
                                parameterType: "integer",
                                exampleValue: "",
                                describe: "Father ID",
                                id: 37
                            },
                            {
                                parameterInterface: "path",
                                parameterType: "string",
                                exampleValue: "",
                                describe: "Hierarchical path to which it belongs",
                                id: 38
                            },
                            {
                                parameterInterface: "name",
                                parameterType: "string",
                                exampleValue: "",
                                describe: "Classification name",
                                id: 39
                            },
                            {
                                parameterInterface: "icon",
                                parameterType: "string",
                                exampleValue: "",
                                describe: "Small icon address",
                                id: 40
                            },
                            {
                                parameterInterface: "desc",
                                parameterType: "string",
                                exampleValue: "",
                                describe: "describe",
                                id: 41
                            },
                            {
                                parameterInterface: "sort",
                                parameterType: "integer",
                                exampleValue: "",
                                describe: "Sort Values",
                                id: 42
                            },
                            {
                                parameterInterface: "level",
                                parameterType: "integer",
                                exampleValue: "",
                                describe: "Belonging level",
                                id: 43
                            },
                            {
                                parameterInterface: "is_show",
                                parameterType: "integer",
                                exampleValue: "1 Yes, 0 No",
                                describe: "Is it displayed",
                                id: 44
                            },
                            {
                                parameterInterface: "deleted_at",
                                parameterType: "string | null",
                                exampleValue: "",
                                describe: "Delete time (value when category has been deleted)",
                                id: 45
                            }
                        ]
                    }
                ]
            }
        ]
    },
    // {
    //     title: "Return parameter description",
    //     columns: HTTPS_RETURN_PARAMS_EN_COLUMNS, //列表配置项
    //     data: [
    //         {
    //             environment: "测试环境",
    //             https: "http://dev.ow.f2b211.com/admapi"
    //         },
    //         {
    //             environment: "正式环境",
    //             https: "http://ow.f2b211.com/admapi"
    //         }
    //     ]
    // },
    {
        title: "Error declaration",
        columns: HTTPS_ERROR_PARAMS_EN_COLUMNS, //列表配置项
        data: [
            {
                errorCode: "401",
                errorMessage: "Unauthorized interface",
                TroMethods: ""
            }
        ]
    }
];
