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

[WIP] refactor: launch_screen and user login #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
28 changes: 25 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ CMD = $(DIR)/cmd
CONFIG_PATH = $(DIR)/config
IDL_PATH = $(DIR)/idl
OUTPUT_PATH = $(DIR)/output

SERVICES := template empty_room
SERVICES := template empty_room user api launch_screen
service = $(word 1, $@)

# mock gen
MOCKS := user_mock
mock = $(word 1, $@)

# hz&kitex
RPC = $(DIR)/cmd
API_PATH= $(DIR)/cmd/api
MODULE=github.com/west2-online/fzuhelper-server
KITEX_GEN_PATH=$(DIR)/kitex_gen

PERFIX = "[Makefile]"

.PHONY: env-up
Expand Down Expand Up @@ -55,4 +60,21 @@ build-all:
# use docker instead to run projects
.PHONY: docker
docker:
docker build -t fzuhelper .
docker build -t fzuhelper .

KSERVICES := user launch_screen
.PHONY: kgen
kgen:
@for kservice in $(KSERVICES); do \
kitex -module ${MODULE} ${IDL_PATH}/$$kservice.thrift; \
cd ${RPC};cd $$kservice;kitex -module ${MODULE} -service $$kservice -use ${KITEX_GEN_PATH} ${IDL_PATH}/$$kservice.thrift; \
cd ../../; \
done \


.PHONY: hzgen
hzgen:
cd ${API_PATH}; \
hz update -idl ${IDL_PATH}/api.thrift; \
swag init; \

37 changes: 37 additions & 0 deletions cmd/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
*.o
*.a
*.so
_obj
_test
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.exe~
*.test
*.prof
*.rar
*.zip
*.gz
*.psd
*.bmd
*.cfg
*.pptx
*.log
*nohup.out
*settings.pyc
*.sublime-project
*.sublime-workspace
!.gitkeep
.DS_Store
/.idea
/.vscode
/output
*.local.yml
dumped_hertz_remote_config.json

6 changes: 6 additions & 0 deletions cmd/api/.hz
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Code generated by hz. DO NOT EDIT.

hz version: v0.8.0
handlerDir: ""
modelDir: ""
routerDir: ""
198 changes: 198 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.

80 changes: 80 additions & 0 deletions cmd/api/biz/handler/api/user_service.go

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

18 changes: 18 additions & 0 deletions cmd/api/biz/handler/ping.go

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

Loading
Loading