added subscription edit

This commit is contained in:
Fran Jurmanovic
2021-07-30 18:28:44 +02:00
parent 9ee2169d17
commit f2bc3dc9fe
4 changed files with 98 additions and 7 deletions

View File

@@ -4,11 +4,7 @@ import "github.com/gin-gonic/gin"
type FilteredResponse struct {
Items interface{} `json:"items"`
SortBy string `json:"sortBy"`
Embed string `json:"embed"`
Page int `json:"page"`
Rpp int `json:"rpp"`
TotalRecords int `json:"totalRecords"`
Params
}
type ResponseFunc func(*gin.Context) *[]interface{}
@@ -16,3 +12,11 @@ type ResponseFunc func(*gin.Context) *[]interface{}
type MessageResponse struct {
Message string `json:"message"`
}
type Params struct {
SortBy string `json:"sortBy"`
Embed string `json:"embed"`
Page int `json:"page"`
Rpp int `json:"rpp"`
TotalRecords int `json:"totalRecords"`
}