improve OrderRandom function for package gdb

This commit is contained in:
John Guo
2021-05-02 16:42:34 +08:00
parent cdc97e9b2b
commit 4b15ab5e99

View File

@ -235,7 +235,7 @@ func (m *Model) OrderDesc(column string) *Model {
}
// OrderRandom sets the "ORDER BY RANDOM()" statement for the model.
func (m *Model) OrderRandom(orderBy ...string) *Model {
func (m *Model) OrderRandom() *Model {
model := m.getModel()
model.orderBy = "RAND()"
return model