K12 版本管理接口说明

云教室-学校以及教室列表

URL: /v1/ccr/list

请求方式:GET

是否需要授权

参数:

名称 必选 类型 说明
searchkey false char 学校名或学校code搜索关键字
page false int 页数 默认第1页
per_page false int 获取每页显示数量 默认为10

响应:

名称 必选 类型
status int 状态
msg char 返回信息

JSON示例:

//HTTP Status Code 200 成功返回
{
    "data": {
        "list": [
            {
                "id": 1,
                "school_code": "110000002",
                "school_name": "北京市平谷中学(初中部)",
                "class_rooms": [
                    {
                        "id": 10,
                        "name": "云教室01",
                        "validity": "6个月",
                        "active_code": "PLJOHRWTM81I",
                        "create_time": 1575447136,
                        "binding_date": 1575448397,
                        "expired_date": 1607070797,
                        "isbinding": 1,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575451190,
                            "machine_code": "BFEBFBFF000906E9267074FF"
                        }
                    },
                    {
                        "id": 11,
                        "name": "云教室02",
                        "validity": "6个月",
                        "active_code": "0REM38EWAYIV",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575450909,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 12,
                        "name": "云教室03",
                        "validity": "6个月",
                        "active_code": "YWAZQTWNGGZU",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 13,
                        "name": "云教室04",
                        "validity": "6个月",
                        "active_code": "BYFJM71MUYEQ",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 14,
                        "name": "云教室05",
                        "validity": "6个月",
                        "active_code": "AYM13POJTHUB",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 15,
                        "name": "云教室06",
                        "validity": "6个月",
                        "active_code": "QCMQ7BTCIPFL",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 16,
                        "name": "云教室07",
                        "validity": "6个月",
                        "active_code": "C143W8XUM0BO",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 17,
                        "name": "云教室08",
                        "validity": "6个月",
                        "active_code": "4OLMDSAGL0G1",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 18,
                        "name": "云教室09",
                        "validity": "6个月",
                        "active_code": "AS86HHLR4VA4",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 19,
                        "name": "云教室10",
                        "validity": "6个月",
                        "active_code": "JBSTGGTZBLX3",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 20,
                        "name": "云教室11",
                        "validity": "6个月",
                        "active_code": "651JUYZIN6FA",
                        "create_time": 1575447136,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "2",
                            "operater": "丁超",
                            "operate_time": 1575447136,
                            "machine_code": ""
                        }
                    }
                ]
            },
            {
                "id": 3,
                "school_code": "310000004",
                "school_name": "上海市市光学校(小学部)",
                "class_rooms": [
                    {
                        "id": 24,
                        "name": "云教室01",
                        "validity": "6个月",
                        "active_code": "5X3SJ2UCQSPB",
                        "create_time": 1575611811,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611811,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 25,
                        "name": "云教室02",
                        "validity": "6个月",
                        "active_code": "GSCOO16AKS8N",
                        "create_time": 1575611811,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611811,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 26,
                        "name": "云教室03",
                        "validity": "6个月",
                        "active_code": "3M2FG6IAL28K",
                        "create_time": 1575611811,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611811,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 27,
                        "name": "云教室04",
                        "validity": "6个月",
                        "active_code": "730LXRJL0VUM",
                        "create_time": 1575611826,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611826,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 28,
                        "name": "云教室05",
                        "validity": "6个月",
                        "active_code": "OCI6GLH5LLY1",
                        "create_time": 1575611826,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611826,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 29,
                        "name": "云教室06",
                        "validity": "6个月",
                        "active_code": "7VJTKJXIFR1A",
                        "create_time": 1575611826,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575611826,
                            "machine_code": ""
                        }
                    }
                ]
            },
            {
                "id": 2,
                "school_code": "330100001",
                "school_name": "杭州市余杭中学",
                "class_rooms": [
                    {
                        "id": 4,
                        "name": "云教室01",
                        "validity": "1年",
                        "active_code": "3A2BOAIQB5HY",
                        "create_time": 1575428854,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575428854,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 5,
                        "name": "云教室02",
                        "validity": "1年",
                        "active_code": "UDPXYNICCLFH",
                        "create_time": 1575428854,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575428854,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 6,
                        "name": "云教室03",
                        "validity": "1年",
                        "active_code": "277RG1SW1XAH",
                        "create_time": 1575428854,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575428854,
                            "machine_code": ""
                        }
                    }
                ]
            },
            {
                "id": 5,
                "school_code": "330100002",
                "school_name": "杭州市余杭实验中学",
                "class_rooms": []
            },
            {
                "id": 4,
                "school_code": "441200001",
                "school_name": "斯美剑桥学校",
                "class_rooms": [
                    {
                        "id": 21,
                        "name": "云教室01",
                        "validity": "6个月",
                        "active_code": "VKL71ZV50HYM",
                        "create_time": 1575523271,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575523271,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 22,
                        "name": "云教室02",
                        "validity": "6个月",
                        "active_code": "7E1INIQFFA3W",
                        "create_time": 1575523271,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575523271,
                            "machine_code": ""
                        }
                    },
                    {
                        "id": 23,
                        "name": "云教室03",
                        "validity": "6个月",
                        "active_code": "00W5SYDDFU6X",
                        "create_time": 1575523271,
                        "binding_date": 0,
                        "expired_date": 0,
                        "isbinding": 0,
                        "log_info": {
                            "operate_account": "1",
                            "operater": "储林",
                            "operate_time": 1575523271,
                            "machine_code": ""
                        }
                    }
                ]
            }
        ],
        "page_nation": {
            "page": 1,
            "total": 5
        }
    },
    "msg": "success",
    "status": 200
}
// HTTP Status Code 400 失败返回
{
    "msg": "错误信息",
    "status": 400
}