mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
add check code
This commit is contained in:
@@ -123,6 +123,10 @@ func (s *AccountService) CreateAccounts(mainAccount *models.Account, childrenAcc
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *AccountService) ModifyAccountDisplayOrders(uid int64, accounts []*models.Account) error {
|
func (s *AccountService) ModifyAccountDisplayOrders(uid int64, accounts []*models.Account) error {
|
||||||
|
if uid <= 0 {
|
||||||
|
return errs.ErrUserIdInvalid
|
||||||
|
}
|
||||||
|
|
||||||
for i := 0; i < len(accounts); i++ {
|
for i := 0; i < len(accounts); i++ {
|
||||||
accounts[i].UpdatedUnixTime = time.Now().Unix()
|
accounts[i].UpdatedUnixTime = time.Now().Unix()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user