mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +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.
10 lines
304 B
Go
10 lines
304 B
Go
package models
|
|
|
|
type Project struct {
|
|
any `collection:"projects"`
|
|
BaseModel `bson:",inline"`
|
|
Name string `json:"name" bson:"name" description:"Name"`
|
|
Description string `json:"description" bson:"description" description:"Description"`
|
|
Spiders int `json:"spiders" bson:"-"`
|
|
}
|