feat: get account by path

This commit is contained in:
Noah Hsu
2022-06-10 16:49:52 +08:00
parent 2481676c46
commit 7b6f11fa52
3 changed files with 54 additions and 12 deletions

View File

@ -3,12 +3,12 @@ package model
import "time"
type Account struct {
ID uint `json:"id" gorm:"primaryKey"`
VirtualPath string `json:"virtual_path" gorm:"unique" binding:"required"`
Index int `json:"index"`
ID uint `json:"id" gorm:"primaryKey"` // unique key
VirtualPath string `json:"virtual_path" gorm:"unique" binding:"required"` // must be standardized
Index int `json:"index"` // use to sort
Driver string `json:"driver"`
Status string `json:"status"`
Addition string `json:"addition"`
Addition string `json:"addition"` // Additional information, defined in the corresponding driver
Remark string `json:"remark"`
Modified time.Time `json:"modified"`
Sort