|
|
|
@ -2,7 +2,7 @@ package users |
|
|
|
|
|
|
|
import ( |
|
|
|
"git.devices.local/mawas/golang-api-skeleton/lib/cache" |
|
|
|
"git.devices.local/mawas/golang-api-skeleton/lib/common" |
|
|
|
"git.devices.local/mawas/golang-api-skeleton/lib/response" |
|
|
|
"git.devices.local/mawas/golang-api-skeleton/repositories" |
|
|
|
"git.devices.local/mawas/golang-api-skeleton/services" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
@ -12,7 +12,7 @@ import ( |
|
|
|
func Read(c *gin.Context) { |
|
|
|
db := c.MustGet("db").(*gorm.DB) |
|
|
|
cc := c.MustGet("cache").(cache.Cache) |
|
|
|
response := common.Envelope{ |
|
|
|
response := response.Envelope{ |
|
|
|
RequestID: c.MustGet("requestID").(string), |
|
|
|
} |
|
|
|
userRepo := repositories.NewUserRepository(db, "01F5FSJXDHWT4HK93B9NB8V5G4", "test", cc) |
|
|
|
|