# mmg-doc **Repository Path**: god/mmg-doc ## Basic Information - **Project Name**: mmg-doc - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-29 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 管理后台的接口 #### 统一约定 1. 测试服务器地址:`172.20.47.52:8080` 2. 所有接口统一结构: {"code":1000,"message":"操作成功。","data":null} 3. 返回数据中,`code`有如下值: OK("操作成功。", 1000), UNKNOW_ERROR("未知错误。", 1001), PARAMETER_ERROR("参数错误。", 1002), UNKNOW_USER("请先登录", 1003); 4. 如无特殊说明,接口同时支持`get/post`两种方式 #### 剧本类型 `isValid`:是否禁用,0/1 `name`:类型名称 添加:http://localhost:8080/admin/playType/add?name=密室杀人 根据id查询:http://localhost:8080/admin/playType/query?id=1 根据id更新:http://localhost:8080/admin/playType/update?id=1&name=密室杀人事件&isValid=0 查询所有:http://localhost:8080/admin/playType/list