# fastcode **Repository Path**: haozing/fastcode ## Basic Information - **Project Name**: fastcode - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-11-29 - **Last Updated**: 2024-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 安装插件 #### 1.新创建插件 ``` php bin/hyperf.php hei:create wechat ``` #### 2.使用开发好的插件 : 直接将插件包复制到plugin目录下 #### 3.插件安装 ``` composer require plugin/wechat ``` ### 生成代码 #### 查看帮助 ``` php bin/hyperf.php hei:gen --help ``` ~~~ Description: Create new model classes. Usage: hei:gen [options] [--] [ []] Arguments: name 插件的名称 [default: "demo"] table Which table you want to associated with the Model. Options: -m, --gm 是否生成model -s, --gs 是否生成服务 -c, --gc 是否生成action[包含验签] -l, --gl 是否生成logic ~~~ #### 生成控制器[controller] ~~~ # 其中wechat是插件名,order是控制器名 php bin/hyperf.php hei:gen wechat order -c ~~~ #### 生成逻辑层[logic] ~~~ # 其中wechat是插件名,order是逻辑名 php bin/hyperf.php hei:gen wechat order -l ~~~ #### 生成服务层[service] ~~~ # 其中wechat是插件名,order是服务名 php bin/hyperf.php hei:gen wechat order -s ~~~ #### 生成模型层[model] ~~~ # 其中wechat是插件名,order是数据表名 php bin/hyperf.php hei:gen wechat order -m ~~~ #### 生成所有 ~~~ # 其中wechat是插件名,order是数据表名 php bin/hyperf.php hei:gen wechat order -m -s -l -c ~~~ ### 核心功能 #### 注解 ##### 1.任意依赖 ##### 2.错误码 ##### 3.权限 ##### 4.日志 ##### 5.Hook