Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor launch_screen and user login #22

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from 23 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ CMD = $(DIR)/cmd
CONFIG_PATH = $(DIR)/config
IDL_PATH = $(DIR)/idl
OUTPUT_PATH = $(DIR)/output
API_PATH= $(DIR)/cmd/api

# 服务名
SERVICES := api user classroom
SERVICES := api user classroom launch_screen
service = $(word 1, $@)

PREFIX = "[Makefile]"
Expand Down Expand Up @@ -79,9 +80,8 @@ kitex-update-%:
# TODO: 这个和 Kitex 的区别在于这个 update 实际上做了 gen 的工作,就直接这么用了
.PHONY: hertz-gen-api
hertz-gen-api:
hz model -idl ./idl/api.thrift --out_dir ./cmd/api && \
hz update -idl ./idl/api.thrift --out_dir ./cmd/api --use ${MODULE}/cmd/api/biz/model && \
swag init --dir ./cmd/api --output ./docs/swagger --outputTypes "yaml"
cd ${API_PATH}; \
FantasyRL marked this conversation as resolved.
Show resolved Hide resolved
hz update -idl ${IDL_PATH}/api.thrift; \

# 单元测试
.PHONY: test
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/.hz
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by hz. DO NOT EDIT.

hz version: v0.9.1
handlerDir: ""
handlerDir: ./biz/handler
modelDir: ""
routerDir: ""
354 changes: 354 additions & 0 deletions cmd/api/biz/handler/api/launch_screen_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading