modify some msg-struct and table-struct
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user