# think-curd **Repository Path**: cianyi/think-curd ## Basic Information - **Project Name**: think-curd - **Description**: 一个测试的composer包 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-31 - **Last Updated**: 2023-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # think-curd #### 介绍 一个居于thinkphp6.0 开发的一个 trait 控制器 curd类 以实现 index,save, read, update 的控制器方法 #### 软件架构 软件架构说明 #### 安装教程 1. 在项目 composer.json 文件中增加 ``` { ...省略 "repositories": [ { "type": "vcs", "url": "https://gitee.com/cianyi/think-curd.git" } ] } ``` 2.执行 composer require cianyi/think-curd 命令 3.示例 增加 ``` model = $model; //指定当前控制器验证器 $this->validate = $validate; //查询数据时显示字段(客户端 ?fields[]=id&fields[]=name) $this->fields = ["id","name"]; //设置可搜索字段(客户端 ?name=123) $this->searchFields = ["name"]; } } ``` #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)