feat: new proto

This commit is contained in:
王性驊 2025-03-05 15:10:12 +08:00
parent d7190ebe79
commit 23d0ce66e9
2 changed files with 9 additions and 2 deletions

View File

@ -6,7 +6,7 @@ GOFMT ?= gofmt "-s"
GOFILES := $(shell find . -name "*.go")
LDFLAGS := -s -w
VERSION="v1.0.1"
DOCKER_REPO="code.30cm.net/permission"
DOCKER_REPO="reg.wang/app-cloudep-permission-service"
.PHONY: test
test: # 進行測試
@ -42,10 +42,11 @@ run-docker: # 建立 rpc code
.PHONY: build-docker
build-docker:
cp ./build/Dockerfile Dockerfile
docker buildx build -t $(DOCKER_REPO):$(VERSION) --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/ed_25519)" .
docker buildx build -t $(DOCKER_REPO):$(VERSION) --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" .
rm -rf Dockerfile
@echo "Generate core-api files successfully"
.PHONY: mock-gen
mock-gen: # 建立 mock 資料
mockgen -source=./pkg/domain/repository/token.go -destination=./pkg/mock/repository/token.go -package=mock

View File

@ -142,3 +142,9 @@ service TokenService {
// GetUserTokensByUID UID Tokens
rpc GetUserTokensByUID(QueryTokenByUIDReq) returns(Tokens);
}
// permission / role / role permission
service PermissionService{
}