mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-03 02:54:41 +08:00
40 lines
715 B
Go
40 lines
715 B
Go
|
## @{.label}
|
|||
|
|
|||
|
### 简介
|
|||
|
|
|||
|
@{.brief}
|
|||
|
|
|||
|
|
|||
|
### 使用说明
|
|||
|
|
|||
|
@{.description}
|
|||
|
|
|||
|
|
|||
|
### 迁移或安装
|
|||
|
|
|||
|
1、安装 HotGo (2.1.4及以上)
|
|||
|
|
|||
|
项目介绍:https://github.com/bufanyun/hotgo
|
|||
|
|
|||
|
2、将当前插件项目拷贝进 HotGo 根目录的 server/addons 目录下
|
|||
|
|
|||
|
3、在 HotGo 根目录的 server/addons/modules 目录下创建go文件:@{.name}.go,内容如下:
|
|||
|
```go
|
|||
|
package modules
|
|||
|
|
|||
|
import _ "hotgo/addons/@{.name}"
|
|||
|
```
|
|||
|
|
|||
|
4、HotGo 后台进入 开发工具->插件管理->找到 @{.label} (@{.name}) 进行安装
|
|||
|
|
|||
|
5、重启服务即可生效
|
|||
|
|
|||
|
|
|||
|
### 常用命令行
|
|||
|
|
|||
|
```shell
|
|||
|
# 接口维护-gen service
|
|||
|
gf gen service -s=addons/@{.name}/logic -d=addons/@{.name}/service
|
|||
|
|
|||
|
```
|