Skip to content

Commit

Permalink
style:optimize the public structure and video_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasyRL committed Apr 23, 2024
1 parent 4e437c3 commit 170661e
Show file tree
Hide file tree
Showing 34 changed files with 3,891 additions and 3,948 deletions.
31 changes: 21 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
DIR = $(shell pwd)#pwd:获得当前路径
CONFIG_PATH = $(DIR)/config
IDL_PATH = $(DIR)/idl
API_PATH = $(DIR)/cmd/api
RPC = $(DIR)/cmd
OUTPUT_PATH = $(DIR)/output
API=api
API_PATH= $(DIR)/cmd/api
SHELL=/bin/bash
MODULE= bibi

.PHONY: init
init:
Expand All @@ -22,17 +21,29 @@ env-down:

SERVICES := api user video interaction
service = $(word 1, $@)

.PHONY: $(SERVICES)
$(SERVICES):
@echo "$(PERFIX) Automatic run server" \
go run $(RPC)/$(service)

@if [ $(service) != $(API) ];then \
go run $(RPC)/$(service) ; fi

@if [ $(service) = $(API) ];then \
go run $(API_PATH) ; fi

.PHONY: build-all
build-all:
sh start.sh
sh start.sh


KSERVICES := user video interaction
.PHONY: kgen
kgen:
@for kservice in $(KSERVICES); do \
# sh kitex_update.sh $$kservice; \
kitex -module ${MODULE} idl/$$kservice.thrift; \
cd ${RPC};cd $$kservice;kitex -module ${MODULE} -service $$kservice -use bibi/kitex_gen ../../idl/$$kservice.thrift; \
done \
echo "done"

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

78 changes: 0 additions & 78 deletions README.md

This file was deleted.

3 changes: 3 additions & 0 deletions causal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MySQL:
* MySQL的安全性:
`Session`, `WithContext`, `Debug` methods return a `*gorm.DB` instance marked as safe for reuse. They base a newly initialized `*gorm.Statement` on the current conditions.
Loading

0 comments on commit 170661e

Please sign in to comment.