From 2b6b5128653ca122c8136e557351ac11246da20a Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期四, 28 十二月 2023 15:48:18 +0800
Subject: [PATCH] operation 中 location定义的bug

---
 models/operation.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/models/operation.go b/models/operation.go
index 3353da2..ea8191b 100644
--- a/models/operation.go
+++ b/models/operation.go
@@ -44,7 +44,7 @@
 		ReceiverAddr  string `json:"receiverAddr" gorm:"type:varchar(255);comment:鏀惰揣鍦板潃"`
 
 		LocationID int      `json:"locationID"   gorm:"type:int;not null;comment:婧愪綅缃甶d"` //婧愪綅缃甶d
-		Location   Location `json:"location" gorm:"foreignkey:locationID;references:Id"` //婧愪綅缃�
+		Location   Location `json:"location" gorm:"foreignkey:LocationID;references:Id"` //婧愪綅缃�
 	}
 
 	OperationSearch struct {

--
Gitblit v1.8.0