Documentation
¶
Index ¶
Constants ¶
View Source
const ( System TargetTypeEnum = iota User = iota Article = iota DocProject = iota DocVersion = iota DocContent = iota )
Variables ¶
This section is empty.
Functions ¶
func UserOptCode ¶ added in v0.2.16
func UserOptCode(userId uint64, optType OptEnum, targetId any, messageCode string, params MessageParams)
Types ¶
type MessageParams ¶ added in v0.2.16
type MessagePayload ¶ added in v0.2.16
type MessagePayload struct {
MessageCode string `json:"messageCode"`
Params MessageParams `json:"params,omitempty"`
}
type OptEnum ¶
type OptEnum int
func (OptEnum) TargetTypeEnum ¶
func (receiver OptEnum) TargetTypeEnum() TargetTypeEnum
type TargetTypeEnum ¶
type TargetTypeEnum int
func (TargetTypeEnum) Name ¶
func (receiver TargetTypeEnum) Name() string
Click to show internal directories.
Click to hide internal directories.