start.sh 407 B

12345678910111213
  1. ### INSTALL goctl
  2. GO111MODULE=on go get -u git.i2edu.net/i2/go-zero/tools/goctl
  3. ### GEN RPC CODE
  4. goctl rpc proto -src transform.proto -dir .
  5. ### GEN MODEL
  6. goctl model mysql ddl -c -src model/student.sql -dir model
  7. goctl model mysql ddl -c -src model/sys_user.sql -dir model
  8. goctl model mysql ddl -c -src model/mkt_part_time_user.sql -dir model
  9. ### RUN RPC SRV
  10. go run transform.go -f etc/transform.yaml