提交 v1.3.0 beta
This commit is contained in:
@ -1,19 +1,21 @@
|
||||
package model
|
||||
|
||||
import "next-terminal/server/utils"
|
||||
import (
|
||||
"next-terminal/server/common"
|
||||
)
|
||||
|
||||
type Strategy struct {
|
||||
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
||||
Name string `gorm:"type:varchar(500)" json:"name"`
|
||||
Upload string `gorm:"type:varchar(1)" json:"upload"` // 1 = true, 0 = false
|
||||
Download string `gorm:"type:varchar(1)" json:"download"`
|
||||
Delete string `gorm:"type:varchar(1)" json:"delete"`
|
||||
Rename string `gorm:"type:varchar(1)" json:"rename"`
|
||||
Edit string `gorm:"type:varchar(1)" json:"edit"`
|
||||
CreateDir string `gorm:"type:varchar(1)" json:"createDir"`
|
||||
Copy string `gorm:"type:varchar(1)" json:"copy"`
|
||||
Paste string `gorm:"type:varchar(1)" json:"paste"`
|
||||
Created utils.JsonTime `json:"created"`
|
||||
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
||||
Name string `gorm:"type:varchar(500)" json:"name"`
|
||||
Upload *bool `gorm:"type:tinyint;default:false" json:"upload"` // 1 = true, 0 = false
|
||||
Download *bool `gorm:"type:tinyint;default:false" json:"download"`
|
||||
Delete *bool `gorm:"type:tinyint;default:false" json:"delete"`
|
||||
Rename *bool `gorm:"type:tinyint;default:false" json:"rename"`
|
||||
Edit *bool `gorm:"type:tinyint;default:false" json:"edit"`
|
||||
CreateDir *bool `gorm:"type:tinyint;default:false" json:"createDir"`
|
||||
Copy *bool `gorm:"type:tinyint;default:false" json:"copy"`
|
||||
Paste *bool `gorm:"type:tinyint;default:false" json:"paste"`
|
||||
Created common.JsonTime `json:"created"`
|
||||
}
|
||||
|
||||
func (r *Strategy) TableName() string {
|
||||
|
Reference in New Issue
Block a user