Documentation ¶
Index ¶
- type JobStatus
- type Model
- func (job *Model) Create() *errors.ApplicationError
- func (job *Model) Delete() *errors.ApplicationError
- func (job *Model) FindAll() ([]Response, *errors.ApplicationError)
- func (job *Model) FindOne() (*Model, *errors.ApplicationError)
- func (job *Model) JobResponse() interface{}
- func (job *Model) Update() (*Model, *errors.ApplicationError)
- func (job *Model) Validate() *errors.ApplicationError
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` UserID primitive.ObjectID `bson:"userID,omitempty" json:"userID"` Title string `bson:"title,omitempty" json:"title"` Link string `bson:"link" json:"link"` Company string `bson:"company" json:"company"` Description string `bson:"description" json:"description"` CreatedAt int64 `bson:"createdAt" json:"createdAt"` UpdatedAt int64 `bson:"updatedAt" json:"updatedAt"` Status JobStatus `bson:"status" json:"status"` }
func (*Model) Create ¶
func (job *Model) Create() *errors.ApplicationError
func (*Model) Delete ¶
func (job *Model) Delete() *errors.ApplicationError
func (*Model) JobResponse ¶
func (job *Model) JobResponse() interface{}
func (*Model) Validate ¶
func (job *Model) Validate() *errors.ApplicationError
type Response ¶
type Response struct { ID primitive.ObjectID `bson:"_id" json:"id"` Title string `bson:"title" json:"title"` Company string `bson:"company" json:"company"` Link string `bson:"link" json:"link"` Description string `bson:"description" json:"description"` CreatedAt int64 `bson:"createdAt" json:"createdAt"` UpdatedAt int64 `bson:"updatedAt" json:"updatedAt"` Status JobStatus `bson:"status" json:"status"` }
Click to show internal directories.
Click to hide internal directories.