Coder Social home page Coder Social logo

ginessential's Introduction

ginEssential

main函数

main函数不包含业务逻辑,仅仅调用初始化数据库,调用配置文件,启动框架的操作

config包

config包下是appication.yml文件,主要存放各类工具的配置,如mysql,redis,server port等等

common包

common包是基础包配置,如数据库初始化函数,jwt获取函数等等的存放

controller包

cotroller 是各类handler函数的实现,在这里实现crud等操作

model包

存放后端数据库实体类

dto包

封装返回前端的数据,也就是与model对应的,返回前端的结构体(实体类)

middleware包

存放中间件,也就是路由调用handle之前处理的事情 AuthMiddleWare 是token验证中间件

response包

封装统一的返回函数,Response()和两个常见的 Success 和 Fail

util包

封装工具类

routers包

路由包,存放路由组等

ginessential's People

Contributors

iiiuwioajdks avatar

Watchers

 avatar

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.