-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
//This file was generated by xfali/gobatis-cmd at | ||
//2020-02-20 15:03:12.9833677 +0800 CST m=+0.049373301 | ||
//2020-02-20 15:55:57.3524245 +0800 CST m=+0.049892501 | ||
|
||
package test | ||
|
||
import "time" | ||
import ( | ||
"github.com/xfali/gobatis" | ||
"time" | ||
) | ||
|
||
type TestTable struct { | ||
//TableName gobatis.ModelName `test_table` | ||
Id int `xfield:"id"` | ||
Username string `xfield:"username"` | ||
Password string `xfield:"password"` | ||
Createtime time.Time `xfield:"createtime"` | ||
//TableName gobatis.ModelName `test_table` | ||
Id int `xfield:"id"` | ||
Username string `xfield:"username"` | ||
Password string `xfield:"password"` | ||
Createtime time.Time `xfield:"createtime"` | ||
} | ||
|
||
func (m *TestTable) Select(sess *gobatis.Session) ([]TestTable, error) { | ||
return SelectTestTable(sess, *m) | ||
} | ||
|
||
func (m *TestTable) Count(sess *gobatis.Session) (int64, error) { | ||
return SelectTestTableCount(sess, *m) | ||
} | ||
|
||
func (m *TestTable) Insert(sess *gobatis.Session) (int64, int64, error) { | ||
return InsertTestTable(sess, *m) | ||
} | ||
|
||
func (m *TestTable) Update(sess *gobatis.Session) (int64, error) { | ||
return UpdateTestTable(sess, *m) | ||
} | ||
|
||
func (m *TestTable) Delete(sess *gobatis.Session) (int64, error) { | ||
return DeleteTestTable(sess, *m) | ||
} |