MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Get

Method Get

module/system/iml.go:28–34  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

26}
27
28func (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
36func (i *imlSettingModule) Set(ctx context.Context, input *system_dto.InputSetting) error {
37 err := input.Validate()

Callers

nothing calls this directly

Calls 1

AllMethod · 0.65

Tested by

no test coverage detected