Aucune description

Yi 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
cmd 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
config 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
dep 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
http 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
migrator 41c39b2d94 job: init il y a 7 mois
model 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
module 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
service a93bdaaf94 consumer: 消费异步数据业务 il y a 7 mois
store 25c3f1072e dept: 部门管理 il y a 1 an
test cc1205904d kpt-pasture: init il y a 1 an
util be6d5ae250 work_order: 工单维护 il y a 7 mois
.drone.yml cc1205904d kpt-pasture: init il y a 1 an
.gitignore f0e6c44453 work_order: 工单业务 il y a 7 mois
Dockerfile f0e6c44453 work_order: 工单业务 il y a 7 mois
Makefile cc1205904d kpt-pasture: init il y a 1 an
README.md cc1205904d kpt-pasture: init il y a 1 an
go.mod 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
go.sum 79988fb3a4 work_order: 工单管理异步 il y a 6 mois
main.go cc1205904d kpt-pasture: init il y a 1 an

README.md

kpt-pasture

kpt-pasture- 科湃腾牧场管理系统

Requirements

  • Go >= 1.17
  • MySQL >= 5.7
  • Docker CE >= 19.03
  • Docker compose

Develops

本地开始开发前,请先阅读 README 和 Makefile,标准使用流程:

需要设置的环境变量:

  • export APP_ENVIRONMENT=test
  • export PASTURE_WORK_DIR=D:\project\golangNew\kpt-pasture

然后你可以尝试编译:

  • make build

本地测试:

  • make test

lint: 在开发完后请记得跑下make lint做代码检查(🤔: 你可能会有疑问,为啥不配置JOB跑呢?--> 因为golang-ci-lint跑本项目需要6G+的内存,会触发OOM😂)

需要更新 go-mock:

  • 生成 mock 前,请确保你能够编译 & 编译完成
  • make generate