Sen descrición

double.huang 866c5f5b07 feat: 添加文件服务 %!s(int64=5) %!d(string=hai) anos
asserts 866c5f5b07 feat: 添加文件服务 %!s(int64=5) %!d(string=hai) anos
etc d4da763b53 feat: init %!s(int64=5) %!d(string=hai) anos
internal 866c5f5b07 feat: 添加文件服务 %!s(int64=5) %!d(string=hai) anos
model d4da763b53 feat: init %!s(int64=5) %!d(string=hai) anos
.drone.yml 96d8d4c15c fix: drone %!s(int64=5) %!d(string=hai) anos
Dockerfile 745597df32 fix: %!s(int64=5) %!d(string=hai) anos
README.md 866c5f5b07 feat: 添加文件服务 %!s(int64=5) %!d(string=hai) anos
go.mod d4da763b53 feat: init %!s(int64=5) %!d(string=hai) anos
go.sum d4da763b53 feat: init %!s(int64=5) %!d(string=hai) anos
i2bill.api d4da763b53 feat: init %!s(int64=5) %!d(string=hai) anos
i2bill.go 866c5f5b07 feat: 添加文件服务 %!s(int64=5) %!d(string=hai) anos
start.sh d4da763b53 feat: init %!s(int64=5) %!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