Sen descrición

2637309949 e6605e0d75 fix: .api %!s(int64=4) %!d(string=hai) anos
asserts fd2a486c7c 目录调整 %!s(int64=4) %!d(string=hai) anos
etc 737ae96312 feat: 用户登录接口 %!s(int64=4) %!d(string=hai) anos
internal e6605e0d75 fix: .api %!s(int64=4) %!d(string=hai) anos
model ef2e2d3fd3 Merge branch 'master' of https://git.i2edu.net/i2/i2-bill-api into master %!s(int64=4) %!d(string=hai) anos
.drone.yml 96d8d4c15c fix: drone %!s(int64=4) %!d(string=hai) anos
Dockerfile 745597df32 fix: %!s(int64=4) %!d(string=hai) anos
README.md 866c5f5b07 feat: 添加文件服务 %!s(int64=4) %!d(string=hai) anos
go.mod 2dbfcceb41 feat: 更新ERP %!s(int64=4) %!d(string=hai) anos
go.sum 2dbfcceb41 feat: 更新ERP %!s(int64=4) %!d(string=hai) anos
i2bill.api e6605e0d75 fix: .api %!s(int64=4) %!d(string=hai) anos
i2bill.go e8ccdf5a50 feat: withUnauthorizedCallback %!s(int64=4) %!d(string=hai) anos
start.sh d4da763b53 feat: init %!s(int64=4) %!d(string=hai) anos

README.md

INSTALL goctl

GO111MODULE=on go get -u git.i2edu.net/i2/go-zero/tools/goctl

GEN API CODE

goctl api go -api i2bill.api -dir .

GEN MODEL

goctl model mysql ddl -c -src model/user.sql -dir model

RUN API GATEWAY

go run i2bill.go -f etc/i2bill-api.yaml

TEST

https://api-test-bill.i2edu.net/api/users/id/1