广告平台(站长使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_db.go 195 B

2 달 전
1234567891011
  1. package svc
  2. import (
  3. db "code.fnuoos.com/zhimeng/model.git/src"
  4. "github.com/gin-gonic/gin"
  5. "xorm.io/xorm"
  6. )
  7. func MasterDb(c *gin.Context) *xorm.Engine {
  8. return db.DBs[c.GetString("mid")]
  9. }