Bläddra i källkod

add cfg.yml

master
dengbiao 1 månad sedan
förälder
incheckning
85b6392476
4 ändrade filer med 47 tillägg och 10 borttagningar
  1. +4
    -5
      docs/docs.go
  2. +1
    -3
      docs/swagger.json
  3. +1
    -2
      docs/swagger.yaml
  4. +41
    -0
      etc/cfg.yml

+ 4
- 5
docs/docs.go Visa fil

@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
@@ -44,9 +43,7 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {
@@ -104,6 +101,8 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 1
- 3
docs/swagger.json Visa fil

@@ -36,9 +36,7 @@
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {


+ 1
- 2
docs/swagger.yaml Visa fil

@@ -34,8 +34,7 @@ paths:
in: body
name: req
required: true
schema:
type: object
schema: {}
produces:
- application/json
responses:


+ 41
- 0
etc/cfg.yml Visa fil

@@ -0,0 +1,41 @@
# 当前域名
debug: true
curldebug: true
prd: false
local: true
# 服务器参数
srv_addr: ':4001'
# 缓存
redis_addr: '127.0.0.1:6379'
redis_password: ''

db:
host: '119.23.182.117:3306'
name: 'egg'
user: 'root'
psw: 'Fnuo123com@'
show_log: true
max_lifetime: 30
max_open_conns: 100
max_idle_conns: 100
path: 'tmp/%s.log'

# 日志
log:
app_name: 'applet'
level: 'debug' # 普通日志级别 #debug, info, warn, fatal, panic
is_stdout: true
time_format: 'standard' # sec, second, milli, nano, standard, iso
encoding: 'console'
is_file_out: true
file_dir: './tmp/'
file_max_size: 256
file_max_age: 1
file_name: 'debug.log'

# 连接RabbitMq
mq:
host: '116.62.62.35'
port: '5672'
user: 'zhios'
pwd: 'ZHIoscnfnuo123'

Laddar…
Avbryt
Spara