正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -7,7 +7,7 @@ import ( | @@ -7,7 +7,7 @@ import ( | ||
7 | ) | 7 | ) |
8 | 8 | ||
9 | type ChanceCheckResult struct { | 9 | type ChanceCheckResult struct { |
10 | - Id int `orm:"column(id);auto"` | 10 | + Id int64 `orm:"column(id);auto"` |
11 | ChanceId int64 `orm:"column(chance_id)"` | 11 | ChanceId int64 `orm:"column(chance_id)"` |
12 | GroupId int64 `orm:"column(group_id);null"` | 12 | GroupId int64 `orm:"column(group_id);null"` |
13 | CheckPid int64 `orm:"column(check_pid)"` | 13 | CheckPid int64 `orm:"column(check_pid)"` |
@@ -29,7 +29,7 @@ func init() { | @@ -29,7 +29,7 @@ func init() { | ||
29 | 29 | ||
30 | // GetChanceCheckResultById retrieves ChanceCheckResult by Id. Returns error if | 30 | // GetChanceCheckResultById retrieves ChanceCheckResult by Id. Returns error if |
31 | // Id doesn't exist | 31 | // Id doesn't exist |
32 | -func GetChanceCheckResultById(id int) (v *ChanceCheckResult, err error) { | 32 | +func GetChanceCheckResultById(id int64) (v *ChanceCheckResult, err error) { |
33 | o := orm.NewOrm() | 33 | o := orm.NewOrm() |
34 | v = &ChanceCheckResult{Id: id} | 34 | v = &ChanceCheckResult{Id: id} |
35 | if err = o.Read(v); err == nil { | 35 | if err = o.Read(v); err == nil { |
-
请 注册 或 登录 后发表评论