GithubHelp home page GithubHelp logo

um-why / coupons-go-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 279 KB

实际项目需求,完成的gin学习练手项目;使用到:gin、gorm、go-redis、hprose-golang

License: BSD 3-Clause "New" or "Revised" License

Go 100.00%
gin-gonic gin-middleware gorm gorm-model go-redis hprose gin

coupons-go-demo's Introduction

coupons-go-demo

实际项目需求,完成的gin学习练手项目;使用到:gin、gorm、go-redis、hprose-golang

项目说明

  • gin的练手项目,大佬路过如有兴趣请指正;菜鸟学习后如有改善处,请帮忙修正
  • 基于产品狗提出的项目需求,公司技术栈php laravel 5.5、mysql aliyun-rds 5.6、redis 、hprose-php;完成后端开发后,用这个需求来完成gin的练手;部分需求,请参加 简要需求截图

实现功能

  • gin 自定义中间件:用于验证接口请求的权限
  • hprose 发起RPC请求,及自定义struct接收请求结果
  • 中间件数据注入gin request请求体的params中,在后续的实现中接收该值
  • gorm 和自定义struct的结合
  • gorm 开启sql打印
  • 定义接口响应对象或列表的struct
  • 实现的功能:卡券的CURD操作、卡券的核销
MORE
  • 开发之处,通过一个go awesome找到的ORM是xorm,开发中,第一个接口添加卡券时没有遇到问题,第二个接口获取卡券列表就走不动了,各种google百度也找不到列表的实现代码;然后换用gorm。

coupons-go-demo's People

Contributors

um-why avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

alexleeca

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.