add restrict for expense,purchase,adjustment transfer: unfinished

This commit is contained in:
ragilap
2025-12-09 15:16:01 +07:00
parent 7094d90034
commit 0fbf04fc1d
18 changed files with 681 additions and 395 deletions
+13
View File
@@ -25,3 +25,16 @@ func ErrorHandler(c *fiber.Ctx, err error) error {
func NotFoundHandler(c *fiber.Ctx) error {
return response.Error(c, fiber.StatusNotFound, "Endpoint Not Found", nil)
}
func BadRequest(msg string) error {
return fiber.NewError(fiber.StatusBadRequest, msg)
}
func NotFound(msg string) error {
return fiber.NewError(fiber.StatusNotFound, msg)
}
func Internal(msg string) error {
return fiber.NewError(fiber.StatusInternalServerError, msg)
}