剔除文件的字节数据序列化
This commit is contained in:
parent
0a9605a74c
commit
142ace7cae
4
init
4
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
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue