start.sh 497 B

12345678910111213141516
  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
  10. #### update erp script
  11. go get -u git.i2edu.net/i2/i2-bill-erp@"$(git ls-remote https://git.i2edu.net/i2/i2-bill-erp refs/heads/master --heads | cut -f 1)"