MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / GetSetting

Method GetSetting

model/user_cache.go:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (user *UserBase) GetSetting() dto.UserSetting {
36 setting := dto.UserSetting{}
37 if user.Setting != "" {
38 err := common.Unmarshal([]byte(user.Setting), &setting)
39 if err != nil {
40 common.SysError("failed to unmarshal setting: " + err.Error())
41 }
42 }
43 return setting
44}
45
46// getUserCacheKey returns the key for user cache
47func getUserCacheKey(userId int) string {

Callers 3

WriteContextMethod · 0.95
GetUserSettingFunction · 0.95
getUserSettingCacheFunction · 0.45

Calls 3

UnmarshalFunction · 0.92
SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected