fix(BE): req body approval and fix projectflock.dto

This commit is contained in:
Hafizh A. Y
2025-10-22 16:49:45 +07:00
parent 8d0bd3724d
commit 56b1134872
5 changed files with 103 additions and 55 deletions
@@ -31,6 +31,7 @@ type Query struct {
}
type Approve struct {
Action string `json:"action" validate:"required_strict"`
Notes *string `json:"notes,omitempty" validate:"omitempty,max=500"`
Action string `json:"action" validate:"required_strict"`
ApprovableIds []uint `json:"approvable_ids" validate:"required_strict,min=1,dive,gt=0"`
Notes *string `json:"notes,omitempty" validate:"omitempty,max=500"`
}