mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-12-02 10:03:16 +00:00
up gorm logger & add share to guest by web client
This commit is contained in:
12
model/shareRecord.go
Normal file
12
model/shareRecord.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
type ShareRecord struct {
|
||||
IdModel
|
||||
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
|
||||
PeerId string `json:"peer_id" gorm:"default:'';not null;index"`
|
||||
ShareToken string `json:"share_token" gorm:"default:'';not null;index"`
|
||||
PasswordType string `json:"password_type" gorm:"default:'';not null;"`
|
||||
Password string `json:"password" gorm:"default:'';not null;"`
|
||||
Expire int64 `json:"expire" gorm:"default:0;not null;"`
|
||||
TimeModel
|
||||
}
|
||||
Reference in New Issue
Block a user