tx7do / kratos-cms Goto Github PK
View Code? Open in Web Editor NEWgo-kratos + vue3-antd-typescript = cms
License: MIT License
go-kratos + vue3-antd-typescript = cms
License: MIT License
你好问下后面还会再更吗,项目跑起来了,真心的好,一看就是做大项目的经验开发。
在验证中发现,如果一张表有个唯一索引字段,那么第一次创建成功,id为1。如果第二次以相同数据创建会报错 Duplicate key error
。然后修改请求表单,第三次创建成功,id为3,按理id=2才是。
我尝试使用了事务还是没发解决id不连续的问题。
RT
New err: invalid FileDescriptorProto "xxx/v1/xxx.proto": proto: could not resolve import "pagination/pagination.proto": not found。不知道如何配置生效
kratos-cms/blog-backend/BUILD.bazel
Line 31 in fb53b3e
RT
引入validate.Validator()中间件后,想把英文错误消息转成中文
{ "code": 400, "reason": "VALIDATOR", "message": "invalid CreatePositionRequest.Position: embedded message failed validation | caused by: invalid Position.Code: value length must be between 2 and 50 runes, inclusive" }
这个命令缺失了。
修改 app.mk 中docker命令的顺序,不然会 报错 “docker build" requires exactly 1 argument”
把 . 放到 -t -f 参数之后。
# build docker image
docker:
@docker build -f ../../../.docker/Dockerfile \
-t $(APP_DOCKER_IMAGE) \
.
--build-arg APP_RELATIVE_PATH=$(APP_RELATIVE_PATH) GRPC_PORT=9000 REST_PORT=8000
Makefile 添加docker命令
# build docker image
docker:
$(foreach dir, $(dir $(realpath $(SRCS_MK))),\
cd $(dir);\
make docker;\
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.