/* 测试文件 */ package main import ( "git.ouxuan.net/hasaki-service/hasaki-sdk/hskdb" "xorm.io/xorm" ) type MyTestr struct { Id int } //wherePrimaryKey func (myTestr *MyTestr) wherePrimaryKey() (q interface{}, args []interface{}) { //todo 根据需求修改 return "`id`=?", []interface{}{ myTestr.Id, } } func (myTestr *MyTestr) getXorm() *xorm.Engine { return hskdb.GetXormAuto() } type MyTestr2 struct { Id int } type MyTestr3 struct { Id int Mi int }