mirror of
https://github.com/fastenhealth/fasten-onprem.git
synced 2026-02-17 23:48:29 -06:00
* 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.
14 lines
296 B
Go
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"`
|
|
}
|