xmgtony / apiserver-gin Goto Github PK
View Code? Open in Web Editor NEW生产级可用golang api服务端(基于gin)
License: MIT License
生产级可用golang api服务端(基于gin)
License: MIT License
一个小白,求联系方式 哈哈
如题,想根据您这个项目结构部署成分布式的系统后端,请问有什么建议么?
Login方法的
if !security.ValidatePassword(param.Password, user.Password) {
这一行并不会返回err,所以下面的errors.Wrap拿到的err永远为nil,最终返回err_code是不对的。
个人疑问是不是和java的分层差不多? 实体 - 持久层 - 服务层-控制层
您好,能不能加一个多个业务逻辑的demo比如role,想看下怎么添加多个业务逻辑需要怎么做
我看项目里面Wire的构造器分散在各个文件里面,是否可以将所有的构建器在cmd 程序 wire.go里面编写,cmd下面可能会有多个入口,在入口的wire里面写对应的构造器是不是会更加灵活一些,业务代码包里面将wire抽离出来。
1 建议考虑下,工程划分和命名,其实可能和领域的概念理解有关
2 接口使用其目的是解决依赖,apiseriver-gin这块对接口使用,建议考虑改进下;举例service他实现某些逻辑,它有接口依赖,就应该由于能力提供方(下次层级来实现),而不建议本层级来实现自己写的接口;
简单看了一下,密码是明文传输的,想使用对称加密,有没有推荐一下,最近在学习,没有写的很明白
🐶保命
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.