mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
feat[BE-378]:Create API Get All HPP Harian Kandang
This commit is contained in:
@@ -164,3 +164,26 @@ func (c *RepportController) GetPurchaseSupplier(ctx *fiber.Ctx) error {
|
||||
Data: result,
|
||||
})
|
||||
}
|
||||
|
||||
func (c *RepportController) GetHppPerKandang(ctx *fiber.Ctx) error {
|
||||
data, meta, err := c.RepportService.GetHppPerKandang(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
resp := struct {
|
||||
Code int `json:"code"`
|
||||
Status string `json:"status"`
|
||||
Message string `json:"message"`
|
||||
Meta dto.HppPerKandangMetaDTO `json:"meta"`
|
||||
Data dto.HppPerKandangResponseData `json:"data"`
|
||||
}{
|
||||
Code: fiber.StatusOK,
|
||||
Status: "success",
|
||||
Message: "Get HPP harian kandang layer successfully",
|
||||
Meta: *meta,
|
||||
Data: *data,
|
||||
}
|
||||
|
||||
return ctx.Status(fiber.StatusOK).JSON(resp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user