gin-inject

command module
v0.0.0-...-5d738b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 3 Imported by: 0

README

gin-inject

gin,以依赖注入方式把项目解耦。相关教程

项目结构

├── cmd  程序入口
├── common 通用模块代码
├── config 配置文件
├── controller API控制器
├── docs 数据库文件
├── models 数据表实体
├── page 页面数据返回实体
├── repository 数据访问层
├── router 路由
├── service 业务逻辑层
├── vue-admin Vue前端页面代码
下载安装项目

go get -x github.com/bingjian-zhu/gin-inject

运行方式
  1. 修改config中数据库配置
  2. 执行go run main.go
  3. 访问:http://localhost:8000/get/555

此demo仅为介绍gin中如何使用依赖注入,具体实战项目请参考gin-vue-admin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL