modify some msg-struct and table-struct

This commit is contained in:
lzx
2025-11-14 17:43:25 +08:00
parent 245c9c94cb
commit ac22db02f3
11 changed files with 605 additions and 276 deletions

View File

@@ -74,7 +74,7 @@ func (s *SQLite) Delete(sqlStr string, args ...any) (int64, error) {
}
// 更新数据
func (s *SQLite) Update(sqlStr string, args ...any) (int64, error) {
func (s *SQLite) Update(sqlStr string, args []any) (int64, error) {
res, err := s.DB.Exec(sqlStr, args...)
if err != nil {
return 0, fmt.Errorf("update error: %v", err)