From 31ca7605c8240b1533a9f7e5e5c3f5122246c8b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 8 Jan 2024 17:44:00 +0800 Subject: [PATCH] 1 --- business/model/print.go | 2 +- controllers/api_controller.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/print.go b/business/model/print.go index cc5b93512..0ac642308 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -53,7 +53,7 @@ type Apps struct { CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` - DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` + DeletedAt time.Time `json:"deleted_at" db:"deleted_at"` UserID string `orm:"column(user_id)" json:"user_id" db:"user_id"` //属于哪个账号的 Name string `json:"name"` //应用名称 Type int `json:"type"` //应用类型 diff --git a/controllers/api_controller.go b/controllers/api_controller.go index b293193de..9dd1caa3f 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -132,7 +132,7 @@ func (c *ApiController) CallOpenAPI() { goto end } else { globals.SugarLogger.Debugf("=====app %s", utils.Format4Output(app, false)) - if app.Status != model.UserStatusNormal || app.DeletedAt != &utils.DefaultTimeValue { + if app.Status != model.UserStatusNormal || app.DeletedAt != utils.DefaultTimeValue { errCode = model.ErrCodeGeneralFailed err = fmt.Errorf("很抱歉您的应用已失效!") goto end