压测 dome
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.
 
 

24 lines
516 B

package pgTest
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ TestModel = (*customTestModel)(nil)
type (
// TestModel is an interface to be customized, add more methods here,
// and implement the added methods in customTestModel.
TestModel interface {
testModel
}
customTestModel struct {
*defaultTestModel
}
)
// NewTestModel returns a model for the database table.
func NewTestModel(conn sqlx.SqlConn) TestModel {
return &customTestModel{
defaultTestModel: newTestModel(conn),
}
}