valueobject

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUserAvatar = "static/avatar.png" // 默认用户头像
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Avatar

type Avatar struct {
	// contains filtered or unexported fields
}

Avatar 头像值对象

func NewAvatar

func NewAvatar(avatar string) (Avatar, error)

func (Avatar) FullURL

func (a Avatar) FullURL() string

func (Avatar) RelativePath

func (a Avatar) RelativePath() string

func (Avatar) String

func (a Avatar) String() string

func (Avatar) Validate

func (a Avatar) Validate() error

func (Avatar) Value

func (a Avatar) Value() string

type WxMiniProgramOpenID

type WxMiniProgramOpenID struct {
	// contains filtered or unexported fields
}

WxMiniProgramOpenID 微信小程序用户OpenID值对象

func NewWxMiniProgramOpenID

func NewWxMiniProgramOpenID(openid string) (WxMiniProgramOpenID, error)

func (WxMiniProgramOpenID) String

func (o WxMiniProgramOpenID) String() string

func (WxMiniProgramOpenID) Validate

func (o WxMiniProgramOpenID) Validate() error

func (WxMiniProgramOpenID) Value

func (o WxMiniProgramOpenID) Value() string

type WxOfficialOpenID

type WxOfficialOpenID struct {
	// contains filtered or unexported fields
}

WxOfficialOpenID 微信公众号用户OpenID值对象

func NewWxOfficialOpenID

func NewWxOfficialOpenID(openid string) (WxOfficialOpenID, error)

func (WxOfficialOpenID) String

func (o WxOfficialOpenID) String() string

func (WxOfficialOpenID) Validate

func (o WxOfficialOpenID) Validate() error

func (WxOfficialOpenID) Value

func (o WxOfficialOpenID) Value() string

type WxUnionID

type WxUnionID struct {
	// contains filtered or unexported fields
}

WxUnionID 微信开放平台union_id值对象

func NewWxUnionID

func NewWxUnionID(unionId string) (WxUnionID, error)

func (WxUnionID) String

func (u WxUnionID) String() string

func (WxUnionID) Validate

func (u WxUnionID) Validate() error

func (WxUnionID) Value

func (u WxUnionID) Value() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL