@@ -64,9 +64,9 @@ func (h *ProxyHandler) List(c *gin.Context) {
6464 return
6565 }
6666
67- out := make ([]dto.ProxyWithAccountCount , 0 , len (proxies ))
67+ out := make ([]dto.AdminProxyWithAccountCount , 0 , len (proxies ))
6868 for i := range proxies {
69- out = append (out , * dto .ProxyWithAccountCountFromService (& proxies [i ]))
69+ out = append (out , * dto .ProxyWithAccountCountFromServiceAdmin (& proxies [i ]))
7070 }
7171 response .Paginated (c , out , total , page , pageSize )
7272}
@@ -83,9 +83,9 @@ func (h *ProxyHandler) GetAll(c *gin.Context) {
8383 response .ErrorFrom (c , err )
8484 return
8585 }
86- out := make ([]dto.ProxyWithAccountCount , 0 , len (proxies ))
86+ out := make ([]dto.AdminProxyWithAccountCount , 0 , len (proxies ))
8787 for i := range proxies {
88- out = append (out , * dto .ProxyWithAccountCountFromService (& proxies [i ]))
88+ out = append (out , * dto .ProxyWithAccountCountFromServiceAdmin (& proxies [i ]))
8989 }
9090 response .Success (c , out )
9191 return
@@ -97,9 +97,9 @@ func (h *ProxyHandler) GetAll(c *gin.Context) {
9797 return
9898 }
9999
100- out := make ([]dto.Proxy , 0 , len (proxies ))
100+ out := make ([]dto.AdminProxy , 0 , len (proxies ))
101101 for i := range proxies {
102- out = append (out , * dto .ProxyFromService (& proxies [i ]))
102+ out = append (out , * dto .ProxyFromServiceAdmin (& proxies [i ]))
103103 }
104104 response .Success (c , out )
105105}
@@ -119,7 +119,7 @@ func (h *ProxyHandler) GetByID(c *gin.Context) {
119119 return
120120 }
121121
122- response .Success (c , dto .ProxyFromService (proxy ))
122+ response .Success (c , dto .ProxyFromServiceAdmin (proxy ))
123123}
124124
125125// Create handles creating a new proxy
@@ -143,7 +143,7 @@ func (h *ProxyHandler) Create(c *gin.Context) {
143143 if err != nil {
144144 return nil , err
145145 }
146- return dto .ProxyFromService (proxy ), nil
146+ return dto .ProxyFromServiceAdmin (proxy ), nil
147147 })
148148}
149149
@@ -176,7 +176,7 @@ func (h *ProxyHandler) Update(c *gin.Context) {
176176 return
177177 }
178178
179- response .Success (c , dto .ProxyFromService (proxy ))
179+ response .Success (c , dto .ProxyFromServiceAdmin (proxy ))
180180}
181181
182182// Delete handles deleting a proxy
0 commit comments