# cAT **Repository Path**: sdm89/cAT ## Basic Information - **Project Name**: cAT - **Description**: CAT - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2021-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 显示未出售的猫 - 请求方式: get - http://127.0.0.1:8000/?Cat_state=%E6%9C%AA%E5%87%BA%E5%94%AE ``` json [ { "id": 1, "Cat_Create_time": "2021-07-30T15:36:00Z", "Cat_Sex": "雌性", "Cat_colour": "h", "Cat_state": "未出售", "Cat_Price": "12.00", "phone_number": "15613115535", "Cat_transaction_time": "2021-07-30T08:19:08Z", "Cat_varieties": "cat" } ] ``` # 显示已经出售的猫 - 请求方式: get - http://127.0.0.1:8000/?Cat_state=%E5%B7%B2%E5%87%BA%E5%94%AE ``` json [ { "id": 1, "Cat_Create_time": "2021-07-30T15:36:00Z", "Cat_Sex": "雌性", "Cat_colour": "h", "Cat_state": "已出售", "Cat_Price": "12.00", "phone_number": "15613115535", "Cat_transaction_time": "2021-07-30T08:19:08Z", "Cat_varieties": "cat" } ] ``` # 一定时间段中的销售总额 - 请求方式: get - http://127.0.0.1:8000/srevenue/?sd=2021-07-30&ed=2022-07-30 ``` json 12.0 ``` # 添加新猫api - 请求方式 post - http://127.0.0.1:8000/ - 请求参数: - Cat Create time 创建时间 - Cat_Sex 性别 - Cat_colour 颜色 - Cat_state 出售状态 - Cat_varieties 种类 - 响应信息: ``` json [ { "id": 1, "Cat_Create_time": "2021-07-30T15:36:00Z", "Cat_Sex": "雌性", "Cat_colour": "h", "Cat_state": "未出售", "Cat_Price": "12.00", "phone_number": "15613115535", "Cat_transaction_time": "2021-07-30T08:19:08Z", "Cat_varieties": "cat" } ] ``` - 项目地址 - https://gitee.com/sdm89/cAT - git下载地址 - https://gitee.com/sdm89/cAT.git