start.sh 341 B

123456789101112
  1. ### INSTALL goctl
  2. GO111MODULE=on go get -u git.i2edu.net/i2/go-zero/tools/goctl
  3. ### GEN API CODE
  4. goctl api go -api i2bill.api -dir .
  5. ### GEN MODEL
  6. goctl model mysql ddl -c -src model/user.sql -dir model
  7. goctl model mysql ddl -c -src model/i2bill_acquirer_student.sql -dir model
  8. ### RUN API GATEWAY
  9. go run i2bill.go -f etc/i2bill-api.yaml