File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func (r *UserController) Indexs(ctx http.Context) http.Response {
56
56
users := []models.User {}
57
57
facades.Orm ().Query ().Model (&models.User {}).Find (&users)
58
58
request := ctx.Request ()
59
- result , err := httpfacades.NewResult (ctx).SearchByParams (request.Queries ()).ResultPagination (ctx, &users)
59
+ result , err := httpfacades.NewResult (ctx).SearchByParams (request.Queries ()).ResultPagination (&users)
60
60
if err != nil {
61
61
return nil
62
62
}
Original file line number Diff line number Diff line change 1
1
package contracts
2
2
3
3
import "github.com/goravel/framework/contracts/http"
4
-
4
+ import HttpResultIns "github.com/hulutech-web/http_result"
5
5
type HttpResult interface {
6
6
Success (message string , data interface {}) http.Response
7
7
Error (code int , message string , data interface {}) http.Response
8
8
ValidError (message string , errors map [string ]map [string ]string ) http.Response
9
9
ResultPagination (dest any ) (http.Response , error )
10
10
SearchByParams (params map [string ]string , excepts ... string ) * HttpResultIns
11
11
}
12
+
You can’t perform that action at this time.
0 commit comments