16 lines
516 B
Go
16 lines
516 B
Go
![]() |
package data
|
||
|
|
||
|
import "github.com/oylshe1314/framework/errors"
|
||
|
|
||
|
func (this *MonthlyCardTable) check() error {
|
||
|
for _, d := range this.l {
|
||
|
if len(d.ActiveNumList) != len(d.ActiveRewardList) {
|
||
|
return errors.Error("incorrect 'MonthlyCard' table, error: len(d.ActiveNumList) != len(d.ActiveRewardList), id: ", d.id())
|
||
|
}
|
||
|
if len(d.PrivilegeArg) != len(d.PrivilegeType) {
|
||
|
return errors.Error("incorrect 'MonthlyCard' table, error: len(d.PrivilegeArg) != len(d.PrivilegeType), id: ", d.id())
|
||
|
}
|
||
|
}
|
||
|
return nil
|
||
|
}
|