Socket
Socket
Sign inDemoInstall

github.com/flipped-aurora/gin-vue-admin/server

Package Overview
Dependencies
133
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/flipped-aurora/gin-vue-admin/server


Version published

Readme

Source

server项目结构

├── api
│   └── v1
├── config
├── core
├── docs
├── global
├── initialize
│   └── internal
├── middleware
├── model
│   ├── request
│   └── response
├── packfile
├── resource
│   ├── excel
│   ├── page
│   └── template
├── router
├── service
├── source
└── utils
    ├── timer
    └── upload
文件夹说明描述
apiapi层api层
--v1v1版本接口v1版本接口
config配置包config.yaml对应的配置结构体
core核心文件核心组件(zap, viper, server)的初始化
docsswagger文档目录swagger文档目录
global全局对象全局对象
initialize初始化router,redis,gorm,validator, timer的初始化
--internal初始化内部函数gorm 的 longger 自定义,在此文件夹的函数只能由 initialize 层进行调用
middleware中间件层用于存放 gin 中间件代码
model模型层模型对应数据表
--request入参结构体接收前端发送到后端的数据。
--response出参结构体返回给前端的数据结构体
packfile静态文件打包静态文件打包
resource静态资源文件夹负责存放静态文件
--excelexcel导入导出默认路径excel导入导出默认路径
--page表单生成器表单生成器 打包后的dist
--template模板模板文件夹,存放的是代码生成器的模板
router路由层路由层
serviceservice层存放业务逻辑问题
sourcesource层存放初始化数据的函数
utils工具包工具函数封装
--timertimer定时器接口封装
--uploadossoss接口封装

FAQs

Last updated on 24 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc