Skip to content

lisgroup/bus_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

后端 API

使用方法

  1. 进入目录安装依赖
cd bus_api
go mod tidy
  1. 复制配置文件
cp core/etc/core-api.yaml.example core/etc/core-api.yaml
  1. 导入数据库 database/core.sql

  2. 运行服务

go run core/core.go -f core/etc/core-api.yaml
  1. 启动后浏览器访问 http://localhost:9999 ,如果需更改启动端口,可在 core-api.yaml 文件中配置。

开发说明

使用 go-zero 官方的工具生成代码:

使用 api 文件生成代码

goctl api go -api core.api -dir . -style go_zero

数据来源:https://szgj.2500.tv/

Releases

No releases published

Packages

No packages published

Languages