MCPcopy Index your code
hub / github.com/cool-team-official/cool-admin-go

github.com/cool-team-official/cool-admin-go @v1.5.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5.11 ↗ · + Follow
675 symbols 1,830 edges 210 files 279 documented · 41% updated 2y agov1.5.11 · 2024-06-07★ 16614 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CoolAdminGo

Go Reference Build Release Goproxy.cn

CoolAdmin 的 Go 版本后端

TODO

  • [x] 基础 CURD 结构搭建
  • [x] model 层快速生成
  • [x] service 层快速生成
  • [x] controller 层快速生成
  • [x] 中间件错误状态及错误码与 node 版本统一
  • [x] 全局错误码统一
  • [x] controller 层接口输入与 node 版本统一
  • [x] 优化开发工具安装体验
  • [x] service 层逻辑补全
  • [x] base 模块逻辑补全 感谢 @imhuso
  • [ ] 开发文档编制
  • [ ] 数据库驱动补充
  • [ ] 文件上传驱动补充
  • [ ] 其他项目需求

使用说明

首先下载安装 Go 语言环境,如果没有安装,请自行安装,如果已经安装,请自行配置环境变量

1.安装cool-tools开发工具

从 github 下载

wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install  && rm ./cool-tools

如果到直接下载速度过慢,可使用pgit加速安装

pgit wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install  && rm ./cool-tools

通过go install安装

go install github.com/cool-team-official/cool-admin-go/cool-tools@latest

验证

cool-tools version

2.创建新项目

cool-tools init hello-world

3.安装依赖

cd hellow-world
go mod tidy

5.启动开发环境

cool-tools run main.go

enjoy it!

Extension points exported contracts — how you extend this code

IModel (Interface)
(no doc) [12 implementers]
cool/model.go
CoolFunc (Interface)
(no doc) [5 implementers]
cool/func.go
Driver (Interface)
Driver 数据库驱动通用接口
cool/cooldb/cooldb.go
IService (Interface)
(no doc) [1 implementers]
cool/service.go
IController (Interface)
(no doc) [1 implementers]
cool/controller.go
IControllerSimple (Interface)
(no doc)
cool/controller-simple.go
Driver (Interface)
(no doc)
cool/coolfile/coolfile.go
Theme (Interface)
(no doc)
frontend/src/modules/theme/types/index.d.ts

Core symbols most depended-on inside this repo

Log
called by 71
modules/task/service/task_info.go
DBM
called by 63
cool/db.go
New
called by 42
cool/coolfile/coolfile.go
Ok
called by 28
cool/cool.go
CreateTable
called by 21
cool/initdb.go
TableName
called by 20
cool/model.go
find
called by 18
frontend/src/cool/types/index.d.ts
Printf
called by 17
cool-tools/internal/utility/mlog/mlog.go

Shape

Function 298
Method 211
Struct 136
Interface 19
Class 8
Enum 2
TypeAlias 1

Languages

Go73%
TypeScript27%

Modules by API surface

cool/service.go25 symbols
cool/controller.go23 symbols
frontend/src/cool/utils/index.ts19 symbols
modules/base/controller/admin/base_comm.go14 symbols
frontend/src/cool/service/base.ts11 symbols
modules/task/controller/admin/task_info.go10 symbols
modules/base/service/base_sys_login.go10 symbols
contrib/drivers/sqlite/gfsqlite.go10 symbols
modules/base/service/base_sys_user.go9 symbols
cool/func.go9 symbols
modules/task/service/task_info.go8 symbols
modules/base/service/base_open.go8 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add cool-admin-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page