<?php

return ["title" => "产品管理", "item" => ["getHostsCates" => ["title" => "获取产品分类", "desc" => "获取产品分类", "url" => "/v1/hosts/cates", "method" => "GET", "auth" => "开发者", "version" => "v1", "param" => [], "return" => [["name" => "cate", "type" => "array[]", "require" => "", "max" => "-", "desc" => "产品分类", "example" => "[{\"id\":1,\"name\":\"服务器\"}]", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "产品分类ID", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "产品分类名称", "example" => "服务器", "child" => []]]]]], "getHosts" => ["title" => "获取所有产品", "desc" => "获取所有产品", "url" => "/v1/hosts", "method" => "GET", "auth" => "开发者", "version" => "v1", "param" => [["name" => "cate_id", "type" => "int", "require" => "", "max" => "-", "desc" => "产品分类ID", "example" => "1", "child" => []], ["name" => "page", "type" => "int", "require" => "require", "max" => "-", "desc" => "页数", "example" => "1", "child" => []], ["name" => "limit", "type" => "int", "require" => "require", "max" => "-", "desc" => "分页条数", "example" => "20", "child" => []], ["name" => "orderby", "type" => "string", "require" => "", "max" => "-", "desc" => "排序字段", "example" => "", "child" => []], ["name" => "sort", "type" => "string", "require" => "", "max" => "-", "desc" => "DESC降序，ASC升序，只有这有这两个值", "example" => "DESC", "child" => []], ["name" => "keywords", "type" => "string", "require" => "", "max" => "-", "desc" => "搜索", "example" => "", "child" => []], ["name" => "domainstatus", "type" => "array[]", "require" => "", "max" => "-", "desc" => "产品状态", "example" => "[\"Active\"]", "child" => []]], "return" => [["name" => "total", "type" => "int", "require" => "", "max" => "-", "desc" => "数据条数", "example" => "1", "child" => []], ["name" => "host", "type" => "array[]", "require" => "", "max" => "-", "desc" => "产品", "example" => "[
			            {
			            	\"id\": 1,
			            	\"type\": \"server\",
			                \"domain\": \"example\",
			                \"domainstatus\": \"Active\",
			                \"regdate\": 1639978741,
			                \"nextduedate\": 1642657162,
			                \"firstpaymentamount\": \"100.00\",
			                \"amount\": \"100.00\",
			                \"billingcycle\": \"monthly\",
			                \"dedicatedip\": \"192.168.1.1\",
			                \"assignedips\": [
			                    \"192.168.1.1\",
			                    \"192.168.1.2\"
			                ],
			                \"initiative_renew\": 1,
			                \"notes\": \"备注\",
			                \"product_id\": 1,
			                \"product_name\": \"example\",
			                \"host_cancel\": \"{\"type\": \"立即停用\",\"reason\": \"立即停用\"}\",
			            }]", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "产品ID", "example" => "1", "child" => []], ["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "产品类型", "example" => "server", "child" => []], ["name" => "domain", "type" => "string", "require" => "", "max" => "-", "desc" => "产品名称", "example" => "example", "child" => []], ["name" => "domainstatus", "type" => "string", "require" => "", "max" => "-", "desc" => "产品状态", "example" => "Active", "child" => []], ["name" => "regdate", "type" => "int", "require" => "", "max" => "-", "desc" => "开通时间", "example" => "1639978741", "child" => []], ["name" => "nextduedate", "type" => "int", "require" => "", "max" => "-", "desc" => "到期时间", "example" => "1642657162", "child" => []], ["name" => "firstpaymentamount", "type" => "float", "require" => "", "max" => "-", "desc" => "首付款金额", "example" => "100.00", "child" => []], ["name" => "amount", "type" => "float", "require" => "", "max" => "-", "desc" => "续费金额", "example" => "100.00", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "", "max" => "-", "desc" => "付款周期", "example" => "monthly", "child" => []], ["name" => "dedicatedip", "type" => "string", "require" => "", "max" => "-", "desc" => "IP地址", "example" => "192.168.1.1", "child" => []], ["name" => "assignedips", "type" => "array[]", "require" => "", "max" => "-", "desc" => "附加IP地址", "example" => "[\"192.168.1.1\", \"192.168.1.2\"]", "child" => []], ["name" => "initiative_renew", "type" => "int", "require" => "", "max" => "-", "desc" => "自动续费状态:0否,1是", "example" => "1", "child" => []], ["name" => "remark", "type" => "string", "require" => "", "max" => "-", "desc" => "备注", "example" => "备注", "child" => []], ["name" => "product_id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "product_name", "type" => "string", "require" => "", "max" => "-", "desc" => "商品名称", "example" => "example", "child" => []], ["name" => "host_cancel", "type" => "array[]", "require" => "", "max" => "-", "desc" => "取消请求数据", "example" => "{\"type\": \"立即停用\",\"reason\": \"立即停用\"}", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => "立即停用", "child" => []], ["name" => "reason", "type" => "string", "require" => "", "max" => "-", "desc" => "原因", "example" => "立即停用", "child" => []]]]]], ["name" => "domainstatus", "type" => "array[]", "require" => "", "max" => "-", "desc" => "产品状态", "example" => "{
			            \"Pending\": {
			                \"name\": \"待开通\",
			                \"color\": \"#fca426\"
			            },
			            \"Active\": {
			                \"name\": \"已激活\",
			                \"color\": \"#3fbf70\"
			            },
			            \"Cancelled\": {
			                \"name\": \"被取消\",
			                \"color\": \"#959799\"
			            },
			            \"Fraud\": {
			                \"name\": \"有欺诈\",
			                \"color\": \"#FF0000\"
			            },
			            \"Deleted\": {
			                \"name\": \"被删除\",
			                \"color\": \"#2d2d2d\"
			            },
			            \"Suspended\": {
			                \"name\": \"已暂停\",
			                \"color\": \"#e31519\"
			            }
			        }", "child" => []]]], "getHostDetail" => ["title" => "获取指定产品", "desc" => "获取指定产品", "url" => "/v1/hosts/:id", "method" => "GET", "auth" => "开发者", "version" => "v1", "param" => [], "return" => [["name" => "host", "type" => "array[]", "require" => "", "max" => "", "desc" => "产品", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "", "desc" => "产品ID", "example" => "1", "child" => []], ["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "产品类型", "example" => "server", "child" => []], ["name" => "domain", "type" => "string", "require" => "", "max" => "-", "desc" => "产品名称", "example" => "example", "child" => []], ["name" => "initiative_renew", "type" => "int", "require" => "", "max" => "-", "desc" => "是否自动续费:0否,1是", "example" => "1", "child" => []], ["name" => "product_id", "type" => "int", "require" => "", "max" => "", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "product_name", "type" => "string", "require" => "", "max" => "-", "desc" => "商品名称", "example" => "example", "child" => []], ["name" => "regdate", "type" => "int", "require" => "", "max" => "-", "desc" => "开通时间", "example" => "1639978741", "child" => []], ["name" => "payment", "type" => "string", "require" => "", "max" => "-", "desc" => "支付方式", "example" => "WxPay", "child" => []], ["name" => "group_id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品分组ID", "example" => "1", "child" => []], ["name" => "firstpaymentamount", "type" => "float", "require" => "", "max" => "-", "desc" => "首付金额", "example" => "100.00", "child" => []], ["name" => "amount", "type" => "float", "require" => "", "max" => "-", "desc" => "续费金额", "example" => "100.00", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "", "max" => "-", "desc" => "付款周期", "example" => "monthly", "child" => []], ["name" => "nextduedate", "type" => "int", "require" => "", "max" => "-", "desc" => "到期时间", "example" => "1642657162", "child" => []], ["name" => "dedicatedip", "type" => "string", "require" => "", "max" => "-", "desc" => "独立ip地址", "example" => "192.168.1.1", "child" => []], ["name" => "assignedips", "type" => "array[]", "require" => "", "max" => "-", "desc" => "分配的IP地址", "example" => "[\"192.168.1.1\", \"192.168.1.2\"]", "child" => []], ["name" => "domainstatus", "type" => "string", "require" => "", "max" => "-", "desc" => "主机状态", "example" => "Active", "child" => []], ["name" => "username", "type" => "string", "require" => "", "max" => "-", "desc" => "用户名", "example" => "root", "child" => []], ["name" => "password", "type" => "string", "require" => "", "max" => "-", "desc" => "密码", "example" => "iCjpmVtvAy6H", "child" => []], ["name" => "suspend_type", "type" => "string", "require" => "", "max" => "-", "desc" => "暂停类型", "example" => "type", "child" => []], ["name" => "suspend_reason", "type" => "string", "require" => "", "max" => "-", "desc" => "暂停原因", "example" => "example", "child" => []], ["name" => "product_id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "bwusage", "type" => "float", "require" => "", "max" => "-", "desc" => "当前使用流量", "example" => "0", "child" => []], ["name" => "bwlimit", "type" => "int", "require" => "", "max" => "-", "desc" => "当前使用流量上限(0表示不限)", "example" => "0", "child" => []], ["name" => "os", "type" => "string", "require" => "", "max" => "-", "desc" => "显示的操作系统", "example" => "CentOS-7.6.1810-x64", "child" => []], ["name" => "remark", "type" => "string", "require" => "", "max" => "-", "desc" => "备注", "example" => "备注", "child" => []], ["name" => "port", "type" => "int", "require" => "", "max" => "-", "desc" => "端口", "example" => "80", "child" => []], ["name" => "config_options_upgrade", "type" => "int", "require" => "", "max" => "-", "desc" => "是否支持升级可配置选项:0否1是", "example" => "1", "child" => []], ["name" => "group_name", "type" => "string", "require" => "", "max" => "-", "desc" => "产品分组名称", "example" => "产品分组名称", "child" => []], ["name" => "ip_num", "type" => "int", "require" => "", "max" => "-", "desc" => "IP数量", "example" => "1", "child" => []], ["name" => "config_option", "type" => "array[]", "require" => "", "max" => "-", "desc" => "产品配置项", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "配置项ID", "example" => "1", "child" => []], ["name" => "type", "type" => "int", "require" => "", "max" => "-", "desc" => "类型", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "example", "child" => []], ["name" => "key", "type" => "string", "require" => "", "max" => "-", "desc" => "键", "example" => "key", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "1", "child" => []]]], ["name" => "custom_field", "type" => "array[]", "require" => "", "max" => "-", "desc" => "自定义字段", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "自定义字段ID", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "example", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "1", "child" => []]]]]]]]]];