go-kratos / beer-shop Goto Github PK
View Code? Open in Web Editor NEWAn online shop application, the complete microservices demo for kratos.
License: MIT License
An online shop application, the complete microservices demo for kratos.
License: MIT License
如题
统一封装响应结构体错误码和信息的代码在哪里,怎么把pb的message和它结合起来?
请求 http://localhost:8000/v1/logout 的时候 直接报了这个错误,Google了一圈没找到啥原因。 有遇到的没?
目前看,如果要在此项目中增加新的服务,有没有一键生成的模板
这个项目有contribution docs吗,也想一块贡献
谢谢,谢谢
api内部采用的 module/service|job/v1/
的结构,导致 import 的时候出现一堆需要 alias 的问题,不够友好。为什么不是采用:service|job/module
的形式呢?这样,import 的时候就无需大量 alias 了。
另外,v1
目录也显得有些多余,在我看来, service|job/module
本身表示 v1 版本,而 service|job/module/v2
这样的表示 v1 以外的版本,不是更符合 go 开发的惯例么?非要这样设计的目的是什么?
另外,从模块版本控制上来看, v1、v2 内部的 pacakge name 采用 module,而不是 v1,v2 这样的 package name 不是更好么?在import 时, 从 v1 切换到 v2,只是由 service/module
变作 service/module/v2
这样的结构,其它都无需更改。
没有找到 CreateOrder 上对于 user 的处理,但是 Login 返回的是 token,是准备用 token 来处理鉴权吗,那每个 rpc 都要接收 token 吗
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.