forked from lejianwen/rustdesk-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.go
More file actions
27 lines (22 loc) · 661 Bytes
/
model.go
File metadata and controls
27 lines (22 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package model
import (
"github.com/lejianwen/rustdesk-api/v2/model/custom_types"
)
type StatusCode int
const (
COMMON_STATUS_ENABLE StatusCode = 1 //通用状态 启用
COMMON_STATUS_DISABLED StatusCode = 2 //通用状态 禁用
)
type IdModel struct {
Id uint `gorm:"primaryKey" json:"id"`
}
type TimeModel struct {
CreatedAt custom_types.AutoTime `json:"created_at" gorm:"type:timestamp;"`
UpdatedAt custom_types.AutoTime `json:"updated_at" gorm:"type:timestamp;"`
}
// Pagination
type Pagination struct {
Page int64 `form:"page" json:"page"`
Total int64 `form:"total" json:"total"`
PageSize int64 `form:"page_size" json:"page_size"`
}