فهرست منبع

前后端都加入了代码结构,方便学习和理解,也欢迎各位大佬进行补充,方便我这个菜鸟进行学习

v_anxiong 3 سال پیش
والد
کامیت
b5b6f31321
2فایلهای تغییر یافته به همراه93 افزوده شده و 0 حذف شده
  1. 44 0
      server/README.md
  2. 49 0
      web/README.md

+ 44 - 0
server/README.md

@@ -0,0 +1,44 @@
+
+整理代码结构
+``` lua
+web
+├── api/v1 -- 主要API
+|   ├── sys_initdb.go -- ico
+|   └── sys_user.go --  
+├── config -- 配置文件 设定操作的结构体
+|   ├── auto_code.go -- ico captcha.go
+|   ├── ... -- ico captcha.go
+|   └── zap.go -- core
+├── core -- 主要结构代码
+|   ├── server_other.go -- ico captcha.go
+|   ├── ... -- ico captcha.go
+|   └── zap.go -- 
+├── docs -- 文档系统
+|   ├── docs.go -- ico captcha.go
+|   ├── swagger.json -- json
+|   └── swagger.yaml -- yaml  
+├── global -- global
+├── initialize -- initialize 
+├── middleware -- 中间键
+├── model -- global
+│   ├── request  -- 所有请求model结构体
+|   |   ├── common.go 
+|   |   ├── ...
+|   |   └── sys_user.go -- yaml  
+|   ├── response  -- 返回数据
+|   |   ├── common.go 
+|   |   ├── ...
+|   |   └── sys_user.go -- yaml  
+├── packfile -- 文件写入
+├── resource -- 资源文件
+├── router -- 路由
+├── service -- service层
+├── source -- 文件目录操作 
+├── utils
+├── config.yaml  -- 
+├── Dockerfile  -- docker配置
+├── go.mod    -- mod 配置
+├── go.sum -- sum
+├── latest_log  -- vue-cli 配置
+└── main.go  -- package.json
+```

+ 49 - 0
web/README.md

@@ -27,3 +27,52 @@ npm run lint
 
 ### Customize configuration
 See [Configuration Reference](https://cli.vuejs.org/config/).
+
+整理代码结构
+``` lua
+web
+├── public -- public
+|   ├── favicon.ico -- ico
+|   └── index.html -- index
+├── src   -- 源代码
+│   ├── api  -- 所有请求
+│   ├── assets  --  主题 字体等静态资源
+|   ├── components -- components组件
+|   ├── directive -- 公用方法 
+|   ├── mixins -- 公用方法
+|   ├── router -- 路由权限
+|   ├── store -- store 
+|   |   ├── modules -- modules 
+|   |   |   ├── dictionary.js -- 动态路由
+|   |   |   ├── router.js -- 路由
+|   |   |   └── user.js -- 用户权限菜单过滤
+|   |   ├── getters.js -- getters
+|   |   └── index.js -- index
+|   ├── styles -- css
+|   ├── utils -- utils 组件
+|   ├── view -- 主要view代码
+|   |   ├── about -- 关于我们
+|   |   ├── dashboard -- 面板
+|   |   ├── error -- 错误
+|   |   ├── example --上传案例
+|   |   ├── iconList -- icon列表
+|   |   ├── init -- 初始化数据  
+|   |   ├── layout  --  layout约束页面 
+|   |   |   ├── aside -- 
+|   |   |   ├── bottomInfo -- bottomInfo
+|   |   |   ├── screenfull -- 全屏设置
+|   |   |   └── index.vue -- base 约束
+|   |   ├── login --结算单管理 
+|   |   ├── person --结算单管理 
+|   |   ├── superAdmin -- 超级管理员操作
+|   |   └── home.vue -- page 入口页面 
+│   ├── App.vue  -- 入口页面
+│   ├── main.js  -- 入口文件 加载组件 初始化等
+│   └── permission.js  -- 跳转
+├── build.config.js  -- 环境变量build配置
+├── openDocument.js  -- 商用代码公司自用产品无需授权
+├── .babelrc    -- babel-loader 配置
+├── .travis.yml -- 自动化CI配置
+├── vue.config.js  -- vue-cli 配置
+└── package.json  -- package.json
+```