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