mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
add api upload documents daily checklist
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package validation
|
||||
|
||||
import (
|
||||
"mime/multipart"
|
||||
)
|
||||
|
||||
type Create struct {
|
||||
Date string `json:"date" validate:"required"`
|
||||
KandangId uint `json:"kandang_id" validate:"required"`
|
||||
@@ -8,8 +12,10 @@ type Create struct {
|
||||
}
|
||||
|
||||
type Update struct {
|
||||
Status string `json:"status" validate:"required"`
|
||||
RejectReason *string `json:"reject_reason"`
|
||||
Status string `form:"status" json:"status" validate:"required"`
|
||||
RejectReason *string `form:"reject_reason" json:"reject_reason"`
|
||||
Documents []*multipart.FileHeader `form:"documents" json:"documents" validate:"omitempty,dive"`
|
||||
DeletedDocumentIDs *string `form:"deleted_document_ids" json:"deleted_document_ids"`
|
||||
}
|
||||
|
||||
type Query struct {
|
||||
|
||||
Reference in New Issue
Block a user