附近小店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_db.go 168 B

3 달 전
1234567891011
  1. package svc
  2. import (
  3. "applet/app/db"
  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. }