Files
crawlab/core/models/models/token.go
Marvin Zhang 931a36c8bf refactor: enhance parameter descriptions and standardize model fields
- Added descriptive annotations to various parameters across controllers to improve API documentation clarity.
- Standardized field definitions in models by including descriptions for better understanding of their purpose.
- Updated validation patterns for ID fields to ensure consistency and improve data integrity.
- Enhanced overall code readability and maintainability by aligning naming conventions and adding necessary comments.
2025-03-19 13:39:02 +08:00

9 lines
228 B
Go

package models
type Token struct {
any `collection:"tokens"`
BaseModel `bson:",inline"`
Name string `json:"name" bson:"name" description:"Name"`
Token string `json:"token" bson:"token" description:"Token"`
}