mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
- 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.
9 lines
228 B
Go
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"`
|
|
}
|