(ctx context.Context)
| 26 | } |
| 27 | |
| 28 | func (i *imlSettingModule) Get(ctx context.Context) *system_dto.Setting { |
| 29 | v, err := i.settingService.All(ctx) |
| 30 | if err != nil { |
| 31 | return &system_dto.Setting{} |
| 32 | } |
| 33 | return system_dto.MapStringToStruct[system_dto.Setting](v) |
| 34 | } |
| 35 | |
| 36 | func (i *imlSettingModule) Set(ctx context.Context, input *system_dto.InputSetting) error { |
| 37 | err := input.Validate() |