mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
add api summary and update status
This commit is contained in:
@@ -8,7 +8,8 @@ type Create struct {
|
||||
}
|
||||
|
||||
type Update struct {
|
||||
Name *string `json:"name,omitempty" validate:"omitempty"`
|
||||
Status string `json:"status" validate:"required"`
|
||||
RejectReason *string `json:"reject_reason" validate:"required"`
|
||||
}
|
||||
|
||||
type Query struct {
|
||||
@@ -31,3 +32,10 @@ type UpdateAssignment struct {
|
||||
Checked *bool `json:"checked,omitempty"`
|
||||
Note *string `json:"note,omitempty"`
|
||||
}
|
||||
|
||||
type SummaryQuery struct {
|
||||
DateFrom string `query:"date_from" validate:"required"`
|
||||
DateTo string `query:"date_to" validate:"required"`
|
||||
Category string `query:"category" validate:"omitempty"`
|
||||
KandangID *uint `query:"kandang_id" validate:"omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user