Coder Social home page Coder Social logo

minecoinchain / wehousing Goto Github PK

View Code? Open in Web Editor NEW
406.0 6.0 107.0 9.81 MB

Golang微服务+区块链实战---go+micro+fabric实现租房上链系统

Dockerfile 0.35% Makefile 1.21% Go 97.88% Shell 0.05% SCSS 0.51%
go micro consul protobuf grpc-go docker fabric

wehousing's People

Contributors

minecoinchain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wehousing's Issues

项目Sql语句

您好,请问这个项目的SQL语句在哪哈,方便加下联系方式嘛

Sql建表语句

你好,请问项目的Sql建表语句可不可以发一下呢

GetUserOrder模块出现问题

您好,我在运行GetUserOrder模块的时候出现了
subscriber/example.go:12:52: undefined: go_micro_srv_GetUserOrder.Message subscriber/example.go:17:40: undefined: go_micro_srv_GetUserOrder.Message
这样的错误信息

The path is not same with you example. protoc --proto_path=.:$GOPATH/src --go_out=. --micro_out=. proto/srv/srv.proto

zhr@ubuntu:~/gospace/src/micro/rpc$ micro new --type "srv" micro/rpc/srv
Creating service go.micro.srv.srv in /home/zhr/gospace/src/micro/rpc/srv
├── main.go
├── generate.go
├── plugin.go
├── handler
│   └── srv.go
├── subscriber
│   └── srv.go
├── proto/srv
│   └── srv.proto
├── Dockerfile
├── Makefile
└── README.md

download protobuf for micro:

brew install protobuf
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u github.com/micro/protoc-gen-micro

cd /home/zhr/gospace/src/micro/rpc/srv
protoc --proto_path=.:$GOPATH/src --go_out=. --micro_out=. proto/srv/srv.proto

项目很棒

项目很不错,看了以后收获很大,希望大佬有后续代码上传,里面很多技术都有用到,很不错

寻求商务合作

您好,我们偶然关注到您在 github 上分享的项目,我们对《go+micro+fabric实现租房上链系统》这个项目很感兴趣,想与您建立商务合作,但是 github 上没有留下您的联系方式,可以在此留下您的微信或邮箱地址,方便我们与您建立联系吗?

make build protoc --proto_path=/home/zhr/gospace/src:. --micro_out=. --go_out=. proto/example/example.proto go build -o DeleteSession-srv main.go plugin.go go: github.com/micro/[email protected] requires github.com/golang/[email protected]: parsing go.mod: module declares its path as: golang.org/x/lint but was required as: github.com/golang/lint Makefile:12: recipe for target 'build' failed make: *** [build] Error 1

make build
protoc --proto_path=/home/zhr/gospace/src:. --micro_out=. --go_out=. proto/example/example.proto
go build -o DeleteSession-srv main.go plugin.go
go: github.com/micro/[email protected] requires
github.com/golang/[email protected]: parsing go.mod:
module declares its path as: golang.org/x/lint
but was required as: github.com/golang/lint
Makefile:12: recipe for target 'build' failed
make: *** [build] Error 1

GetArea模块中数据获取逻辑问题

你好,在GetArea模块中当进行数据获取的时候有这么一个逻辑,先去redis中获取数据,如果有数据则将缓存中的数据发送给web,没有数据则去mysql中获取,我想这里应该是为了在查找房产信息的时候使用之前选定的区域而做的逻辑。
但是会导致在首页出现一个问题,当你选择了区域信息后,点击搜索,再回到首页来会发现现在只有你之前选择的area了,无法将数据库中的信息读出来,如图
Snipaste_2019-08-21_15-01-53
同理,进入到房源列表的时候也会出现这样的bug。
Snipaste_2019-08-21_15-01-53
这次issue语言组织的有些啰嗦,希望您能见谅。

Fabric

请问fabric用在了那里 ? 您是怎么将fabric联盟链和微服务结合的呢?

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.