mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-16 01:50:25 +08:00
阶段性提交
This commit is contained in:
22
internal/db/models/api_token_model.go
Normal file
22
internal/db/models/api_token_model.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package models
|
||||
|
||||
// API令牌管理
|
||||
type ApiToken struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
NodeId string `field:"nodeId"` // 节点ID
|
||||
Secret string `field:"secret"` // 节点密钥
|
||||
Role string `field:"role"` // 节点角色
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type ApiTokenOperator struct {
|
||||
Id interface{} // ID
|
||||
NodeId interface{} // 节点ID
|
||||
Secret interface{} // 节点密钥
|
||||
Role interface{} // 节点角色
|
||||
State interface{} // 状态
|
||||
}
|
||||
|
||||
func NewApiTokenOperator() *ApiTokenOperator {
|
||||
return &ApiTokenOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user