广告平台(站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_db.go 195 B

4 months ago
4 months ago
4 months ago
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. }