- 修复mysql模式下「资产授权列表」「用户授权列表」「用户组授权列表」无法使用的问题 fixed #315
- 修复资产新增、修改无权限的缺陷 fixed #314 - 修复执行动态指令时多行失败且无法自动执行的问题 fixed #313 #310 - 修复计划任务无法选择资产的问题 fixed #312 - 修复导入导出备份无效的问题 fixed #303 - 增加「资产详情」「资产授权」「用户详情」「用户授权」「用户组详情」「用户组授权」「角色详情」「授权策略详情」按钮 - 修复资产列表使用IP搜索无效的问题 - 资产列表增加最近接入时间排序、增加修改每页数量 fixed #311 - 修复登录页面双因素认证输入框无法自动获取焦点的问题 fixed #311 - 增加普通页面资产列表最后接入时间排序 fixed #311 - 计划任务增加执行本机系统命令
This commit is contained in:
@ -22,6 +22,7 @@ type Asset struct {
|
||||
Active bool `json:"active"`
|
||||
ActiveMessage string `gorm:"type:varchar(200)" json:"activeMessage"`
|
||||
Created common.JsonTime `json:"created"`
|
||||
LastAccessTime common.JsonTime `json:"lastAccessTime"`
|
||||
Tags string `json:"tags"`
|
||||
Owner string `gorm:"index,type:varchar(36)" json:"owner"`
|
||||
Encrypted bool `json:"encrypted"`
|
||||
@ -29,18 +30,19 @@ type Asset struct {
|
||||
}
|
||||
|
||||
type AssetForPage struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
IP string `json:"ip"`
|
||||
Protocol string `json:"protocol"`
|
||||
Port int `json:"port"`
|
||||
Active bool `json:"active"`
|
||||
ActiveMessage string `json:"activeMessage"`
|
||||
Created common.JsonTime `json:"created"`
|
||||
Tags string `json:"tags"`
|
||||
Owner string `json:"owner"`
|
||||
OwnerName string `json:"ownerName"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
IP string `json:"ip"`
|
||||
Protocol string `json:"protocol"`
|
||||
Port int `json:"port"`
|
||||
Active bool `json:"active"`
|
||||
ActiveMessage string `json:"activeMessage"`
|
||||
Created common.JsonTime `json:"created"`
|
||||
LastAccessTime common.JsonTime `json:"lastAccessTime"`
|
||||
Tags string `json:"tags"`
|
||||
Owner string `json:"owner"`
|
||||
OwnerName string `json:"ownerName"`
|
||||
}
|
||||
|
||||
func (r *Asset) TableName() string {
|
||||
|
Reference in New Issue
Block a user