[SSH认证]记录创建的管理员ID

This commit is contained in:
GoEdgeLab
2020-11-27 10:02:46 +08:00
parent 05d46af0ad
commit 202a8838a4
4 changed files with 12 additions and 3 deletions

View File

@@ -73,8 +73,9 @@ func (this *NodeGrantDAO) FindNodeGrantName(id uint32) (string, error) {
}
// 创建认证信息
func (this *NodeGrantDAO) CreateGrant(name string, method string, username string, password string, privateKey string, description string, nodeId int64) (grantId int64, err error) {
func (this *NodeGrantDAO) CreateGrant(adminId int64, name string, method string, username string, password string, privateKey string, description string, nodeId int64) (grantId int64, err error) {
op := NewNodeGrantOperator()
op.AdminId = adminId
op.Name = name
op.Method = method