From 142ace7caefc1b001191c0d12377ec3d51f25863 Mon Sep 17 00:00:00 2001 From: sysnix <535420543@qq.com> Date: Mon, 25 Sep 2023 00:05:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=94=E9=99=A4=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E8=8A=82=E6=95=B0=E6=8D=AE=E5=BA=8F=E5=88=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init | 4 ++++ internal/model/admin/SysFile.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/init b/init index ff7f598..6ff6a49 100644 --- a/init +++ b/init @@ -12,3 +12,7 @@ go get github.com/redis/go-redis/v9 go get github.com/mitchellh/mapstructure # 验证码 go get -u github.com/mojocn/base64Captcha + +# 打包发布的时候要切换系统环境进行编译 +go env -w GOOS=linux +go env -w GOOS=windows \ No newline at end of file diff --git a/internal/model/admin/SysFile.go b/internal/model/admin/SysFile.go index 3a27716..baaa075 100644 --- a/internal/model/admin/SysFile.go +++ b/internal/model/admin/SysFile.go @@ -2,7 +2,7 @@ package admin type SysFile struct { Id string `json:"id" gorm:"primary_key"` - Data []byte + Data []byte `json:"-"` FileName string `json:"fileName"` FileSize int64 `json:"fileSize"` Sort int `json:"sort"`