Coder Social home page Coder Social logo

go-kratos / beer-shop Goto Github PK

View Code? Open in Web Editor NEW
691.0 40.0 155.0 1.16 MB

An online shop application, the complete microservices demo for kratos.

License: MIT License

Go 68.17% Dockerfile 0.44% Makefile 0.31% JavaScript 29.14% HTML 1.66% CSS 0.28%
kratos microservices-demo microservices

beer-shop's Issues

User 鉴权的处理

没有找到 CreateOrder 上对于 user 的处理,但是 Login 返回的是 token,是准备用 token 来处理鉴权吗,那每个 rpc 都要接收 token 吗

api 内部结构不够友好

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 这样的结构,其它都无需更改。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.