Files
fasten-onprem/backend/pkg/models/response_wrapper.go
Jason Kulatunga c85e829c46 Adding new system settings table. (#409)
* Adding new system settings table.
Adding associated database migration.
Added tests
Fixing tests for user-settings.

* updated migration, make sure default system settings are created.
Added database commands to create and update system settings.
Added generic response wrapper.

* make sure we can get related versions (fasten sources, onprem and desktop) when starting the app.
2024-02-09 09:10:06 -08:00

14 lines
296 B
Go

package models
type ResponseWrapper struct {
Success bool `json:"success"`
Error string `json:"error"`
Data interface{} `json:"data"`
}
type ResponseWrapperTyped[T any] struct {
Success bool `json:"success"`
Error string `json:"error"`
Data T `json:"data"`
}