csx 3 years ago
parent
commit
8b67f54eba
3 changed files with 3 additions and 4 deletions
  1. 2 2
      conf/app.conf
  2. 1 1
      service/bl_service.go
  3. 0 1
      service/db.go

+ 2 - 2
conf/app.conf View File

32
 
32
 
33
 blmysqlhost = localhost
33
 blmysqlhost = localhost
34
 blmysqlport = 3306
34
 blmysqlport = 3306
35
-blmysqluser = lindialy
36
-blmysqlpass = 123456
35
+blmysqluser = root
36
+blmysqlpass = 12345678
37
 blmysqlname = kuyicloud
37
 blmysqlname = kuyicloud
38
 
38
 
39
 
39
 

+ 1 - 1
service/bl_service.go View File

128
 }
128
 }
129
 
129
 
130
 func (CmSample) TableName() string {
130
 func (CmSample) TableName() string {
131
-	return "v_cm_sample"
131
+	return "cm_sample"
132
 }
132
 }
133
 
133
 
134
 type CmLisitems struct {
134
 type CmLisitems struct {

+ 0 - 1
service/db.go View File

177
 	blDb, err = gorm.Open("mysql", bldsn)
177
 	blDb, err = gorm.Open("mysql", bldsn)
178
 	if err != nil {
178
 	if err != nil {
179
 		fmt.Println("12344")
179
 		fmt.Println("12344")
180
-
181
 		fmt.Println(err)
180
 		fmt.Println(err)
182
 	}
181
 	}
183
 	blDb.DB().SetMaxIdleConns(10)
182
 	blDb.DB().SetMaxIdleConns(10)