剔除文件的字节数据序列化

This commit is contained in:
sysnix 2023-09-25 00:05:58 +08:00
parent 0a9605a74c
commit 142ace7cae
2 changed files with 5 additions and 1 deletions

4
init
View File

@ -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

View File

@ -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"`