package db import ( "xorm.io/xorm" ) type PermissionDb struct { Db *xorm.Engine `json:"db"` } func (permissionDb *PermissionDb) Set() { // set方法 permissionDb.Db = Db }