MCPcopy
hub / github.com/apache/answer / GetURL

Method GetURL

internal/schema/user_schema.go:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282}
283
284func (a *AvatarInfo) GetURL() string {
285 switch a.Type {
286 case constant.AvatarTypeGravatar:
287 return a.Gravatar
288 case constant.AvatarTypeCustom:
289 return a.Custom
290 default:
291 return ""
292 }
293}
294
295func CustomAvatar(url string) *AvatarInfo {
296 return &AvatarInfo{

Callers 13

GetUserPageMethod · 0.80
GetUserBasicInfoByIDMethod · 0.80
EmailLoginMethod · 0.80
UserRegisterByEmailMethod · 0.80
UserVerifyEmailMethod · 0.80
UserChangeEmailVerifyMethod · 0.80
GetUserStaffMethod · 0.80
getUserInfoMappingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected