# 2023-Pet宠物领养小程序uniapp+Thinkphp5.0.23 **Repository Path**: shell12/Pet ## Basic Information - **Project Name**: 2023-Pet宠物领养小程序uniapp+Thinkphp5.0.23 - **Description**: 2023-Pet宠物领养小程序uniapp+Thinkphp5.0.23 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-03-08 - **Last Updated**: 2024-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 2023-Pet宠物领养小程序uniapp+Thinkphp5.0.23 #### 介绍 2023-Pet宠物领养小程序uniapp+Thinkphp5.0.23,本项目为毕设项目不用于商业,若需要投入商业使用,需要自行在原基础上二开功能,另外接口也需要座一层防护,可参考[小程序携带Token请求接口+无感知登录方案](https://blog.csdn.net/qq_35230125/article/details/128917956) #### 接口文档(POST\GET通用 供开发者调试) | 接口名称| 请求URL\APi | 请求参数 | 返回码说明 | 正确返回示例 | 错误返回示例 | 数据库字段详情 | 其他| |---|---|---|---|---|---|---|---| | 换取openid接口) | http://pet.taila.club/index.php/index/Api/login| code | 100错误 200正确 | ` { "code": 200, "data": "[array]", "msg": "获取成功" }` | `{ "code": 100, "data": "", "msg": "非法操作" } ` | | | | 宠物列表接口 | http://pet.taila.club/index.php/index/Api/pet_list | | - | - | - |![输入图片说明](https://i.328888.xyz/2023/03/09/SPXxL.png)|图片拼接链接实例:https://pet.taila.club/upload/e0ed42356gyuh678xgbd.png | | 用户注册\更新 | https://pet.taila.club/index.php/index/Api/registe| openid、nickname、phone、avat | - | - | - | ![数据表](https://i.328888.xyz/2023/03/08/SIUGd.png) | 如果存在相同的openid插入,则会更新其他字段相反插入新记录 | | 查询我的收藏记录 | https://pet.taila.club/index.php/index/Api/query_my_collect | openid | - | - | - | | | | 收藏宠物 | https://pet.taila.club/index.php/index/Api/requests_collect | openid、pet_info_id【宠物表(pet_info)的id】| 200--收藏成功or已经收藏过了 | - | - | | | |取消宠物收藏 | https://pet.taila.club/index.php/index/Api/cancel_collect | openid、pet_info_id【宠物表(pet_info)的id】 | 200--取消收藏成功or没有记录取消收藏失败 | ![输入图片说明](tpIIPVT3IOB%5BT6%5DUX~$EZE)27.png) | | | | | 查询我的信息 | https://pet.taila.club/index.php/index/Api/query_mydata | openid | - | - | - | | | | 发布领养信息 | https://pet.taila.club/index.php/index/Api/pub_pet| openid pet_name kinds pet_sex pet_age pet_health pet_health pet_breed pet_desc pet_publi pub_address pub_name pub_phone pub_pet | - | - | - | ![输入图片说明](https://i.328888.xyz/2023/03/09/SPXxL.png) | 插入后返回id| | 申请领养 | https://pet.taila.club/index.php/index/Api/apply_pet | apply_openid(申请人openid) apply_petid(申请的宠物id) apply_real_name(申请人真实姓名) apply_address(地址) apply_phone(手机) | | | | | | #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库2 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request