add user login

This commit is contained in:
Aditya Siregar
2025-08-03 23:11:31 +07:00
parent ebe9999793
commit f65c06a053
14 changed files with 94 additions and 31 deletions
@@ -49,6 +49,9 @@ func (h *PaymentMethodHandler) CreatePaymentMethod(c *gin.Context) {
return
}
req.OrganizationID = contextInfo.OrganizationID
req.OutletID = contextInfo.OutletID
paymentMethodResponse := h.paymentMethodService.CreatePaymentMethod(ctx, contextInfo, &req)
if paymentMethodResponse.HasErrors() {
errorResp := paymentMethodResponse.GetErrors()[0]
-1
View File
@@ -75,7 +75,6 @@ func (h *UnitHandler) GetAll(c *gin.Context) {
ctx := c.Request.Context()
contextInfo := appcontext.FromGinContext(ctx)
// Get query parameters
pageStr := c.DefaultQuery("page", "1")
limitStr := c.DefaultQuery("limit", "10")
search := c.Query("search")