Translate Chinese comments, log/error messages, validator labels and Swagger annotations to English throughout the source code, generated Swagger docs, config files and CI workflows. Make the English README primary: README.md now holds the English docs and README_EN.md holds the Chinese version, with cross-language links updated accordingly. Note: the generated docs/ swagger files were translated in place; run `go generate ./...` (swag init) to regenerate them from the now-English annotations when a Go toolchain is available. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 lines
670 B
Go
28 lines
670 B
Go
package model
|
|
|
|
import (
|
|
"github.com/lejianwen/rustdesk-api/v2/model/custom_types"
|
|
)
|
|
|
|
type StatusCode int
|
|
|
|
const (
|
|
COMMON_STATUS_ENABLE StatusCode = 1 // common status: enabled
|
|
COMMON_STATUS_DISABLED StatusCode = 2 // common status: disabled
|
|
)
|
|
|
|
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"`
|
|
}
|