Kaynağa Gözat

update .gitignore

add_mode
DengBiao 1 yıl önce
ebeveyn
işleme
d54e98f1e4
4 değiştirilmiş dosya ile 0 ekleme ve 91 silme
  1. +0
    -36
      etc/cfg.yml
  2. +0
    -7
      etc/db_tpl/config
  3. +0
    -17
      etc/db_tpl/struct.go.tpl
  4. +0
    -31
      etc/task.yml

+ 0
- 36
etc/cfg.yml Dosyayı Görüntüle

@@ -1,36 +0,0 @@
# 当前域名
debug: true
curldebug: true
prd: false
local: true
# 服务器参数
srv_addr: ':8001'
# 缓存
redis_addr: '120.24.28.6:32572'

# 连接官网数据库获取db mapping
db:
host: '119.23.182.117:3306'
name: 'smart_canteen'
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'

smart_canteen_pay: 'http://smartCanteenPay.com'

+ 0
- 7
etc/db_tpl/config Dosyayı Görüntüle

@@ -1,7 +0,0 @@
lang=go
genJson=1
prefix=cos_
ignoreColumnsJSON=
created=
updated=
deleted=

+ 0
- 17
etc/db_tpl/struct.go.tpl Dosyayı Görüntüle

@@ -1,17 +0,0 @@
package {{.Models}}

{{$ilen := len .Imports}}
{{if gt $ilen 0}}
import (
{{range .Imports}}"{{.}}"{{end}}
)
{{end}}

{{range .Tables}}
type {{Mapper .Name}} struct {
{{$table := .}}
{{range .ColumnsSeq}}{{$col := $table.GetColumn .}} {{Mapper $col.Name}} {{Type $col}} {{Tag $table $col}}
{{end}}
}
{{end}}


+ 0
- 31
etc/task.yml Dosyayı Görüntüle

@@ -1,31 +0,0 @@
# debug release test
debug: true
prd: false
local: true
# 缓存
redis_addr: '120.24.28.6:32572'

# 数据库
db:
host: '119.23.182.117:3306'
name: 'zyos_website'
user: 'root'
psw: 'Fnuo123com@'
show_log: true
max_lifetime: 30
max_open_conns: 100
max_idle_conns: 100
path: 'tmp/task_sql_%v.log'


# 日志
log:
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: 'task.log'

Yükleniyor…
İptal
Kaydet