modified 统一代码风格

This commit is contained in:
何秀钢
2021-06-01 16:20:46 +08:00
parent d3fee1bf3e
commit 3ffe0d89d8
34 changed files with 95 additions and 112 deletions

View File

@@ -11,8 +11,8 @@ import (
//@author: [songzhibin97](https://github.com/songzhibin97)
//@function: ClearTable
//@description: 清理数据库表数据
//@param: target db(数据库对象) *gorm.DB,tableName(表名) string,compareField(比较字段) string , interval string 间隔
//@return: err
//@param: db(数据库对象) *gorm.DB, tableName(表名) string, compareField(比较字段) string, interval(间隔) string
//@return: error
func ClearTable(db *gorm.DB, tableName string, compareField string, interval string) error {
if db == nil {