From 7ffcc41e597c5af4169e3e2ab809fdbf869c2154 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 18 七月 2023 16:08:47 +0800
Subject: [PATCH] add
---
model/user.go | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/model/user.go b/model/user.go
index 411cc42..529e9bd 100644
--- a/model/user.go
+++ b/model/user.go
@@ -34,6 +34,8 @@
Ip string `json:"ip" gorm:"type:varchar(255);comment:闆嗙兢Ip"`
Port string `json:"port" gorm:"type:varchar(255);comment:绔彛鍙�"`
Status int `json:"status" gorm:"type:int(11);comment:鐢ㄦ埛瀹℃牳鐘舵�� 0:绂佺敤; 1:姝e父; 2:瀹℃牳涓�"`
+ AuthorityId uint `json:"authorityId" gorm:"default:888;comment:鐢ㄦ埛瑙掕壊ID"` // 鐢ㄦ埛瑙掕壊ID
+ Authority Authority `json:"authority" gorm:"foreignKey:AuthorityId"`
}
UserSearch struct {
--
Gitblit v1.8.0