Help us shape the future of Go! Take the 2026 Go Developer Survey

notify

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveReq_Type_DEFAULT string
View Source
var CreateReq_EndAt_DEFAULT string
View Source
var CreateReq_StartAt_DEFAULT string
View Source
var CreateReq_Status_DEFAULT int32
View Source
var ListReq_Level_DEFAULT string
View Source
var ListReq_PageSize_DEFAULT int32
View Source
var ListReq_Page_DEFAULT int32
View Source
var ListReq_Status_DEFAULT int32
View Source
var ListReq_Type_DEFAULT string
View Source
var MarkReadReq_All_DEFAULT bool
View Source
var MineReq_PageSize_DEFAULT int32
View Source
var MineReq_Page_DEFAULT int32
View Source
var NotifyItem_EndAt_DEFAULT string
View Source
var NotifyItem_StartAt_DEFAULT string
View Source
var UpdateReq_Content_DEFAULT string
View Source
var UpdateReq_EndAt_DEFAULT string
View Source
var UpdateReq_Level_DEFAULT string
View Source
var UpdateReq_StartAt_DEFAULT string
View Source
var UpdateReq_Status_DEFAULT int32
View Source
var UpdateReq_Title_DEFAULT string
View Source
var UpdateReq_Type_DEFAULT string
View Source
var UserNotifyItemData_ReadAt_DEFAULT string

Functions

This section is empty.

Types

type ActiveData

type ActiveData struct {
	Items []*NotifyItem `thrift:"items,1,required,list<NotifyItem>" form:"items,required" json:"items,required"`
}
var ActiveResp_Data_DEFAULT *ActiveData

func NewActiveData

func NewActiveData() *ActiveData

func (*ActiveData) GetItems

func (p *ActiveData) GetItems() (v []*NotifyItem)

func (*ActiveData) InitDefault

func (p *ActiveData) InitDefault()

func (*ActiveData) Read

func (p *ActiveData) Read(iprot thrift.TProtocol) (err error)

func (*ActiveData) ReadField1

func (p *ActiveData) ReadField1(iprot thrift.TProtocol) error

func (*ActiveData) String

func (p *ActiveData) String() string

func (*ActiveData) Write

func (p *ActiveData) Write(oprot thrift.TProtocol) (err error)

type ActiveReq

type ActiveReq struct {
	Type *string `thrift:"type,1,optional" json:"type,omitempty" query:"type"`
}

==================== 获取活跃通知(公开 API) ====================

var NotifyServiceActiveArgs_Req_DEFAULT *ActiveReq

func NewActiveReq

func NewActiveReq() *ActiveReq

func (*ActiveReq) GetType

func (p *ActiveReq) GetType() (v string)

func (*ActiveReq) InitDefault

func (p *ActiveReq) InitDefault()

func (*ActiveReq) IsSetType

func (p *ActiveReq) IsSetType() bool

func (*ActiveReq) Read

func (p *ActiveReq) Read(iprot thrift.TProtocol) (err error)

func (*ActiveReq) ReadField1

func (p *ActiveReq) ReadField1(iprot thrift.TProtocol) error

func (*ActiveReq) String

func (p *ActiveReq) String() string

func (*ActiveReq) Write

func (p *ActiveReq) Write(oprot thrift.TProtocol) (err error)

type ActiveResp

type ActiveResp struct {
	Code    int32       `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string      `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *ActiveData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var NotifyServiceActiveResult_Success_DEFAULT *ActiveResp

func NewActiveResp

func NewActiveResp() *ActiveResp

func (*ActiveResp) GetCode

func (p *ActiveResp) GetCode() (v int32)

func (*ActiveResp) GetData

func (p *ActiveResp) GetData() (v *ActiveData)

func (*ActiveResp) GetMessage

func (p *ActiveResp) GetMessage() (v string)

func (*ActiveResp) InitDefault

func (p *ActiveResp) InitDefault()

func (*ActiveResp) IsSetData

func (p *ActiveResp) IsSetData() bool

func (*ActiveResp) Read

func (p *ActiveResp) Read(iprot thrift.TProtocol) (err error)

func (*ActiveResp) ReadField1

func (p *ActiveResp) ReadField1(iprot thrift.TProtocol) error

func (*ActiveResp) ReadField2

func (p *ActiveResp) ReadField2(iprot thrift.TProtocol) error

func (*ActiveResp) ReadField3

func (p *ActiveResp) ReadField3(iprot thrift.TProtocol) error

func (*ActiveResp) String

func (p *ActiveResp) String() string

func (*ActiveResp) Write

func (p *ActiveResp) Write(oprot thrift.TProtocol) (err error)

type CreateReq

type CreateReq struct {
	Title   string  `thrift:"title,1,required" form:"title,required" json:"title,required"`
	Content string  `thrift:"content,2,required" form:"content,required" json:"content,required"`
	Type    string  `thrift:"type,3,required" form:"type,required" json:"type,required"`
	Level   string  `thrift:"level,4,required" form:"level,required" json:"level,required"`
	Status  *int32  `thrift:"status,5,optional" form:"status" json:"status,omitempty"`
	StartAt *string `thrift:"start_at,6,optional" form:"start_at" json:"start_at,omitempty"`
	EndAt   *string `thrift:"end_at,7,optional" form:"end_at" json:"end_at,omitempty"`
}

==================== 创建 ====================

var NotifyServiceCreateArgs_Req_DEFAULT *CreateReq

func NewCreateReq

func NewCreateReq() *CreateReq

func (*CreateReq) GetContent

func (p *CreateReq) GetContent() (v string)

func (*CreateReq) GetEndAt

func (p *CreateReq) GetEndAt() (v string)

func (*CreateReq) GetLevel

func (p *CreateReq) GetLevel() (v string)

func (*CreateReq) GetStartAt

func (p *CreateReq) GetStartAt() (v string)

func (*CreateReq) GetStatus

func (p *CreateReq) GetStatus() (v int32)

func (*CreateReq) GetTitle

func (p *CreateReq) GetTitle() (v string)

func (*CreateReq) GetType

func (p *CreateReq) GetType() (v string)

func (*CreateReq) InitDefault

func (p *CreateReq) InitDefault()

func (*CreateReq) IsSetEndAt

func (p *CreateReq) IsSetEndAt() bool

func (*CreateReq) IsSetStartAt

func (p *CreateReq) IsSetStartAt() bool

func (*CreateReq) IsSetStatus

func (p *CreateReq) IsSetStatus() bool

func (*CreateReq) Read

func (p *CreateReq) Read(iprot thrift.TProtocol) (err error)

func (*CreateReq) ReadField1

func (p *CreateReq) ReadField1(iprot thrift.TProtocol) error

func (*CreateReq) ReadField2

func (p *CreateReq) ReadField2(iprot thrift.TProtocol) error

func (*CreateReq) ReadField3

func (p *CreateReq) ReadField3(iprot thrift.TProtocol) error

func (*CreateReq) ReadField4

func (p *CreateReq) ReadField4(iprot thrift.TProtocol) error

func (*CreateReq) ReadField5

func (p *CreateReq) ReadField5(iprot thrift.TProtocol) error

func (*CreateReq) ReadField6

func (p *CreateReq) ReadField6(iprot thrift.TProtocol) error

func (*CreateReq) ReadField7

func (p *CreateReq) ReadField7(iprot thrift.TProtocol) error

func (*CreateReq) String

func (p *CreateReq) String() string

func (*CreateReq) Write

func (p *CreateReq) Write(oprot thrift.TProtocol) (err error)

type CreateResp

type CreateResp struct {
	Code    int32       `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string      `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *NotifyItem `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var NotifyServiceCreateResult_Success_DEFAULT *CreateResp

func NewCreateResp

func NewCreateResp() *CreateResp

func (*CreateResp) GetCode

func (p *CreateResp) GetCode() (v int32)

func (*CreateResp) GetData

func (p *CreateResp) GetData() (v *NotifyItem)

func (*CreateResp) GetMessage

func (p *CreateResp) GetMessage() (v string)

func (*CreateResp) InitDefault

func (p *CreateResp) InitDefault()

func (*CreateResp) IsSetData

func (p *CreateResp) IsSetData() bool

func (*CreateResp) Read

func (p *CreateResp) Read(iprot thrift.TProtocol) (err error)

func (*CreateResp) ReadField1

func (p *CreateResp) ReadField1(iprot thrift.TProtocol) error

func (*CreateResp) ReadField2

func (p *CreateResp) ReadField2(iprot thrift.TProtocol) error

func (*CreateResp) ReadField3

func (p *CreateResp) ReadField3(iprot thrift.TProtocol) error

func (*CreateResp) String

func (p *CreateResp) String() string

func (*CreateResp) Write

func (p *CreateResp) Write(oprot thrift.TProtocol) (err error)

type DeleteReq

type DeleteReq struct {
	ID int64 `thrift:"id,1,required" json:"id,required" path:"id,required"`
}

==================== 删除 ====================

var NotifyServiceDeleteArgs_Req_DEFAULT *DeleteReq

func NewDeleteReq

func NewDeleteReq() *DeleteReq

func (*DeleteReq) GetID

func (p *DeleteReq) GetID() (v int64)

func (*DeleteReq) InitDefault

func (p *DeleteReq) InitDefault()

func (*DeleteReq) Read

func (p *DeleteReq) Read(iprot thrift.TProtocol) (err error)

func (*DeleteReq) ReadField1

func (p *DeleteReq) ReadField1(iprot thrift.TProtocol) error

func (*DeleteReq) String

func (p *DeleteReq) String() string

func (*DeleteReq) Write

func (p *DeleteReq) Write(oprot thrift.TProtocol) (err error)

type DeleteResp

type DeleteResp struct {
	Code    int32  `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
}
var NotifyServiceDeleteResult_Success_DEFAULT *DeleteResp

func NewDeleteResp

func NewDeleteResp() *DeleteResp

func (*DeleteResp) GetCode

func (p *DeleteResp) GetCode() (v int32)

func (*DeleteResp) GetMessage

func (p *DeleteResp) GetMessage() (v string)

func (*DeleteResp) InitDefault

func (p *DeleteResp) InitDefault()

func (*DeleteResp) Read

func (p *DeleteResp) Read(iprot thrift.TProtocol) (err error)

func (*DeleteResp) ReadField1

func (p *DeleteResp) ReadField1(iprot thrift.TProtocol) error

func (*DeleteResp) ReadField2

func (p *DeleteResp) ReadField2(iprot thrift.TProtocol) error

func (*DeleteResp) String

func (p *DeleteResp) String() string

func (*DeleteResp) Write

func (p *DeleteResp) Write(oprot thrift.TProtocol) (err error)

type GetReq

type GetReq struct {
	ID int64 `thrift:"id,1,required" json:"id,required" path:"id,required"`
}

==================== 获取单条 ====================

var NotifyServiceGetArgs_Req_DEFAULT *GetReq

func NewGetReq

func NewGetReq() *GetReq

func (*GetReq) GetID

func (p *GetReq) GetID() (v int64)

func (*GetReq) InitDefault

func (p *GetReq) InitDefault()

func (*GetReq) Read

func (p *GetReq) Read(iprot thrift.TProtocol) (err error)

func (*GetReq) ReadField1

func (p *GetReq) ReadField1(iprot thrift.TProtocol) error

func (*GetReq) String

func (p *GetReq) String() string

func (*GetReq) Write

func (p *GetReq) Write(oprot thrift.TProtocol) (err error)

type GetResp

type GetResp struct {
	Code    int32       `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string      `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *NotifyItem `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var NotifyServiceGetResult_Success_DEFAULT *GetResp

func NewGetResp

func NewGetResp() *GetResp

func (*GetResp) GetCode

func (p *GetResp) GetCode() (v int32)

func (*GetResp) GetData

func (p *GetResp) GetData() (v *NotifyItem)

func (*GetResp) GetMessage

func (p *GetResp) GetMessage() (v string)

func (*GetResp) InitDefault

func (p *GetResp) InitDefault()

func (*GetResp) IsSetData

func (p *GetResp) IsSetData() bool

func (*GetResp) Read

func (p *GetResp) Read(iprot thrift.TProtocol) (err error)

func (*GetResp) ReadField1

func (p *GetResp) ReadField1(iprot thrift.TProtocol) error

func (*GetResp) ReadField2

func (p *GetResp) ReadField2(iprot thrift.TProtocol) error

func (*GetResp) ReadField3

func (p *GetResp) ReadField3(iprot thrift.TProtocol) error

func (*GetResp) String

func (p *GetResp) String() string

func (*GetResp) Write

func (p *GetResp) Write(oprot thrift.TProtocol) (err error)

type ListData

type ListData struct {
	Items    []*NotifyItem `thrift:"items,1,required,list<NotifyItem>" form:"items,required" json:"items,required"`
	Total    int64         `thrift:"total,2,required" form:"total,required" json:"total,required"`
	Page     int32         `thrift:"page,3,required" form:"page,required" json:"page,required"`
	PageSize int32         `thrift:"page_size,4,required" form:"page_size,required" json:"page_size,required"`
}
var ListResp_Data_DEFAULT *ListData

func NewListData

func NewListData() *ListData

func (*ListData) GetItems

func (p *ListData) GetItems() (v []*NotifyItem)

func (*ListData) GetPage

func (p *ListData) GetPage() (v int32)

func (*ListData) GetPageSize

func (p *ListData) GetPageSize() (v int32)

func (*ListData) GetTotal

func (p *ListData) GetTotal() (v int64)

func (*ListData) InitDefault

func (p *ListData) InitDefault()

func (*ListData) Read

func (p *ListData) Read(iprot thrift.TProtocol) (err error)

func (*ListData) ReadField1

func (p *ListData) ReadField1(iprot thrift.TProtocol) error

func (*ListData) ReadField2

func (p *ListData) ReadField2(iprot thrift.TProtocol) error

func (*ListData) ReadField3

func (p *ListData) ReadField3(iprot thrift.TProtocol) error

func (*ListData) ReadField4

func (p *ListData) ReadField4(iprot thrift.TProtocol) error

func (*ListData) String

func (p *ListData) String() string

func (*ListData) Write

func (p *ListData) Write(oprot thrift.TProtocol) (err error)

type ListReq

type ListReq struct {
	Page     *int32  `thrift:"page,1,optional" json:"page,omitempty" query:"page"`
	PageSize *int32  `thrift:"page_size,2,optional" json:"page_size,omitempty" query:"page_size"`
	Type     *string `thrift:"type,3,optional" json:"type,omitempty" query:"type"`
	Level    *string `thrift:"level,4,optional" json:"level,omitempty" query:"level"`
	Status   *int32  `thrift:"status,5,optional" json:"status,omitempty" query:"status"`
}

==================== 列表查询 ====================

var NotifyServiceListArgs_Req_DEFAULT *ListReq

func NewListReq

func NewListReq() *ListReq

func (*ListReq) GetLevel

func (p *ListReq) GetLevel() (v string)

func (*ListReq) GetPage

func (p *ListReq) GetPage() (v int32)

func (*ListReq) GetPageSize

func (p *ListReq) GetPageSize() (v int32)

func (*ListReq) GetStatus

func (p *ListReq) GetStatus() (v int32)

func (*ListReq) GetType

func (p *ListReq) GetType() (v string)

func (*ListReq) InitDefault

func (p *ListReq) InitDefault()

func (*ListReq) IsSetLevel

func (p *ListReq) IsSetLevel() bool

func (*ListReq) IsSetPage

func (p *ListReq) IsSetPage() bool

func (*ListReq) IsSetPageSize

func (p *ListReq) IsSetPageSize() bool

func (*ListReq) IsSetStatus

func (p *ListReq) IsSetStatus() bool

func (*ListReq) IsSetType

func (p *ListReq) IsSetType() bool

func (*ListReq) Read

func (p *ListReq) Read(iprot thrift.TProtocol) (err error)

func (*ListReq) ReadField1

func (p *ListReq) ReadField1(iprot thrift.TProtocol) error

func (*ListReq) ReadField2

func (p *ListReq) ReadField2(iprot thrift.TProtocol) error

func (*ListReq) ReadField3

func (p *ListReq) ReadField3(iprot thrift.TProtocol) error

func (*ListReq) ReadField4

func (p *ListReq) ReadField4(iprot thrift.TProtocol) error

func (*ListReq) ReadField5

func (p *ListReq) ReadField5(iprot thrift.TProtocol) error

func (*ListReq) String

func (p *ListReq) String() string

func (*ListReq) Write

func (p *ListReq) Write(oprot thrift.TProtocol) (err error)

type ListResp

type ListResp struct {
	Code    int32     `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string    `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *ListData `thrift:"data,3,required" form:"data,required" json:"data,required"`
}
var NotifyServiceListResult_Success_DEFAULT *ListResp

func NewListResp

func NewListResp() *ListResp

func (*ListResp) GetCode

func (p *ListResp) GetCode() (v int32)

func (*ListResp) GetData

func (p *ListResp) GetData() (v *ListData)

func (*ListResp) GetMessage

func (p *ListResp) GetMessage() (v string)

func (*ListResp) InitDefault

func (p *ListResp) InitDefault()

func (*ListResp) IsSetData

func (p *ListResp) IsSetData() bool

func (*ListResp) Read

func (p *ListResp) Read(iprot thrift.TProtocol) (err error)

func (*ListResp) ReadField1

func (p *ListResp) ReadField1(iprot thrift.TProtocol) error

func (*ListResp) ReadField2

func (p *ListResp) ReadField2(iprot thrift.TProtocol) error

func (*ListResp) ReadField3

func (p *ListResp) ReadField3(iprot thrift.TProtocol) error

func (*ListResp) String

func (p *ListResp) String() string

func (*ListResp) Write

func (p *ListResp) Write(oprot thrift.TProtocol) (err error)

type MarkReadData added in v0.9.0

type MarkReadData struct {
	Marked int64 `thrift:"marked,1,required" form:"marked,required" json:"marked,required"`
}
var MarkReadResp_Data_DEFAULT *MarkReadData

func NewMarkReadData added in v0.9.0

func NewMarkReadData() *MarkReadData

func (*MarkReadData) GetMarked added in v0.9.0

func (p *MarkReadData) GetMarked() (v int64)

func (*MarkReadData) InitDefault added in v0.9.0

func (p *MarkReadData) InitDefault()

func (*MarkReadData) Read added in v0.9.0

func (p *MarkReadData) Read(iprot thrift.TProtocol) (err error)

func (*MarkReadData) ReadField1 added in v0.9.0

func (p *MarkReadData) ReadField1(iprot thrift.TProtocol) error

func (*MarkReadData) String added in v0.9.0

func (p *MarkReadData) String() string

func (*MarkReadData) Write added in v0.9.0

func (p *MarkReadData) Write(oprot thrift.TProtocol) (err error)

type MarkReadReq added in v0.9.0

type MarkReadReq struct {
	// true = 全部已读(当前仅支持全部已读)
	All *bool `thrift:"all,1,optional" form:"all" json:"all,omitempty"`
}
var NotifyServiceMarkReadArgs_Req_DEFAULT *MarkReadReq

func NewMarkReadReq added in v0.9.0

func NewMarkReadReq() *MarkReadReq

func (*MarkReadReq) GetAll added in v0.9.0

func (p *MarkReadReq) GetAll() (v bool)

func (*MarkReadReq) InitDefault added in v0.9.0

func (p *MarkReadReq) InitDefault()

func (*MarkReadReq) IsSetAll added in v0.9.0

func (p *MarkReadReq) IsSetAll() bool

func (*MarkReadReq) Read added in v0.9.0

func (p *MarkReadReq) Read(iprot thrift.TProtocol) (err error)

func (*MarkReadReq) ReadField1 added in v0.9.0

func (p *MarkReadReq) ReadField1(iprot thrift.TProtocol) error

func (*MarkReadReq) String added in v0.9.0

func (p *MarkReadReq) String() string

func (*MarkReadReq) Write added in v0.9.0

func (p *MarkReadReq) Write(oprot thrift.TProtocol) (err error)

type MarkReadResp added in v0.9.0

type MarkReadResp struct {
	Code    int32         `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string        `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *MarkReadData `thrift:"data,3,optional" form:"data" json:"data,omitempty"`
}
var NotifyServiceMarkReadResult_Success_DEFAULT *MarkReadResp

func NewMarkReadResp added in v0.9.0

func NewMarkReadResp() *MarkReadResp

func (*MarkReadResp) GetCode added in v0.9.0

func (p *MarkReadResp) GetCode() (v int32)

func (*MarkReadResp) GetData added in v0.9.0

func (p *MarkReadResp) GetData() (v *MarkReadData)

func (*MarkReadResp) GetMessage added in v0.9.0

func (p *MarkReadResp) GetMessage() (v string)

func (*MarkReadResp) InitDefault added in v0.9.0

func (p *MarkReadResp) InitDefault()

func (*MarkReadResp) IsSetData added in v0.9.0

func (p *MarkReadResp) IsSetData() bool

func (*MarkReadResp) Read added in v0.9.0

func (p *MarkReadResp) Read(iprot thrift.TProtocol) (err error)

func (*MarkReadResp) ReadField1 added in v0.9.0

func (p *MarkReadResp) ReadField1(iprot thrift.TProtocol) error

func (*MarkReadResp) ReadField2 added in v0.9.0

func (p *MarkReadResp) ReadField2(iprot thrift.TProtocol) error

func (*MarkReadResp) ReadField3 added in v0.9.0

func (p *MarkReadResp) ReadField3(iprot thrift.TProtocol) error

func (*MarkReadResp) String added in v0.9.0

func (p *MarkReadResp) String() string

func (*MarkReadResp) Write added in v0.9.0

func (p *MarkReadResp) Write(oprot thrift.TProtocol) (err error)

type MineData added in v0.9.0

type MineData struct {
	Items      []*UserNotifyItemData `thrift:"items,1,required,list<UserNotifyItemData>" form:"items,required" json:"items,required"`
	Total      int64                 `thrift:"total,2,required" form:"total,required" json:"total,required"`
	Unread     int64                 `thrift:"unread,3,required" form:"unread,required" json:"unread,required"`
	Page       int32                 `thrift:"page,4,required" form:"page,required" json:"page,required"`
	PageSize   int32                 `thrift:"page_size,5,required" form:"page_size,required" json:"page_size,required"`
	TotalPages int64                 `thrift:"total_pages,6,required" form:"total_pages,required" json:"total_pages,required"`
}
var MineResp_Data_DEFAULT *MineData

func NewMineData added in v0.9.0

func NewMineData() *MineData

func (*MineData) GetItems added in v0.9.0

func (p *MineData) GetItems() (v []*UserNotifyItemData)

func (*MineData) GetPage added in v0.9.0

func (p *MineData) GetPage() (v int32)

func (*MineData) GetPageSize added in v0.9.0

func (p *MineData) GetPageSize() (v int32)

func (*MineData) GetTotal added in v0.9.0

func (p *MineData) GetTotal() (v int64)

func (*MineData) GetTotalPages added in v0.9.0

func (p *MineData) GetTotalPages() (v int64)

func (*MineData) GetUnread added in v0.9.0

func (p *MineData) GetUnread() (v int64)

func (*MineData) InitDefault added in v0.9.0

func (p *MineData) InitDefault()

func (*MineData) Read added in v0.9.0

func (p *MineData) Read(iprot thrift.TProtocol) (err error)

func (*MineData) ReadField1 added in v0.9.0

func (p *MineData) ReadField1(iprot thrift.TProtocol) error

func (*MineData) ReadField2 added in v0.9.0

func (p *MineData) ReadField2(iprot thrift.TProtocol) error

func (*MineData) ReadField3 added in v0.9.0

func (p *MineData) ReadField3(iprot thrift.TProtocol) error

func (*MineData) ReadField4 added in v0.9.0

func (p *MineData) ReadField4(iprot thrift.TProtocol) error

func (*MineData) ReadField5 added in v0.9.0

func (p *MineData) ReadField5(iprot thrift.TProtocol) error

func (*MineData) ReadField6 added in v0.9.0

func (p *MineData) ReadField6(iprot thrift.TProtocol) error

func (*MineData) String added in v0.9.0

func (p *MineData) String() string

func (*MineData) Write added in v0.9.0

func (p *MineData) Write(oprot thrift.TProtocol) (err error)

type MineReq added in v0.9.0

type MineReq struct {
	Page     *int32 `thrift:"page,1,optional" json:"page,omitempty" query:"page"`
	PageSize *int32 `thrift:"page_size,2,optional" json:"page_size,omitempty" query:"page_size"`
}

==================== 我的通知(登录用户,2026-10-09 自 customHandler 收敛进 IDL) ====================

var NotifyServiceMineArgs_Req_DEFAULT *MineReq
var NotifyServiceUnreadCountArgs_Req_DEFAULT *MineReq

func NewMineReq added in v0.9.0

func NewMineReq() *MineReq

func (*MineReq) GetPage added in v0.9.0

func (p *MineReq) GetPage() (v int32)

func (*MineReq) GetPageSize added in v0.9.0

func (p *MineReq) GetPageSize() (v int32)

func (*MineReq) InitDefault added in v0.9.0

func (p *MineReq) InitDefault()

func (*MineReq) IsSetPage added in v0.9.0

func (p *MineReq) IsSetPage() bool

func (*MineReq) IsSetPageSize added in v0.9.0

func (p *MineReq) IsSetPageSize() bool

func (*MineReq) Read added in v0.9.0

func (p *MineReq) Read(iprot thrift.TProtocol) (err error)

func (*MineReq) ReadField1 added in v0.9.0

func (p *MineReq) ReadField1(iprot thrift.TProtocol) error

func (*MineReq) ReadField2 added in v0.9.0

func (p *MineReq) ReadField2(iprot thrift.TProtocol) error

func (*MineReq) String added in v0.9.0

func (p *MineReq) String() string

func (*MineReq) Write added in v0.9.0

func (p *MineReq) Write(oprot thrift.TProtocol) (err error)

type MineResp added in v0.9.0

type MineResp struct {
	Code    int32     `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string    `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *MineData `thrift:"data,3,optional" form:"data" json:"data,omitempty"`
}
var NotifyServiceMineResult_Success_DEFAULT *MineResp

func NewMineResp added in v0.9.0

func NewMineResp() *MineResp

func (*MineResp) GetCode added in v0.9.0

func (p *MineResp) GetCode() (v int32)

func (*MineResp) GetData added in v0.9.0

func (p *MineResp) GetData() (v *MineData)

func (*MineResp) GetMessage added in v0.9.0

func (p *MineResp) GetMessage() (v string)

func (*MineResp) InitDefault added in v0.9.0

func (p *MineResp) InitDefault()

func (*MineResp) IsSetData added in v0.9.0

func (p *MineResp) IsSetData() bool

func (*MineResp) Read added in v0.9.0

func (p *MineResp) Read(iprot thrift.TProtocol) (err error)

func (*MineResp) ReadField1 added in v0.9.0

func (p *MineResp) ReadField1(iprot thrift.TProtocol) error

func (*MineResp) ReadField2 added in v0.9.0

func (p *MineResp) ReadField2(iprot thrift.TProtocol) error

func (*MineResp) ReadField3 added in v0.9.0

func (p *MineResp) ReadField3(iprot thrift.TProtocol) error

func (*MineResp) String added in v0.9.0

func (p *MineResp) String() string

func (*MineResp) Write added in v0.9.0

func (p *MineResp) Write(oprot thrift.TProtocol) (err error)

type NotifyItem

type NotifyItem struct {
	ID      int64  `thrift:"id,1,required" form:"id,required" json:"id,required"`
	Title   string `thrift:"title,2,required" form:"title,required" json:"title,required"`
	Content string `thrift:"content,3,required" form:"content,required" json:"content,required"`
	// system/feature/maintenance
	Type string `thrift:"type,4,required" form:"type,required" json:"type,required"`
	// info/warning/error/success
	Level string `thrift:"level,5,required" form:"level,required" json:"level,required"`
	// 0=草稿 1=发布 2=下线
	Status int32 `thrift:"status,6,required" form:"status,required" json:"status,required"`
	// 生效时间(RFC3339)
	StartAt *string `thrift:"start_at,7,optional" form:"start_at" json:"start_at,omitempty"`
	// 失效时间
	EndAt     *string `thrift:"end_at,8,optional" form:"end_at" json:"end_at,omitempty"`
	CreatedAt string  `thrift:"created_at,9,required" form:"created_at,required" json:"created_at,required"`
	UpdatedAt string  `thrift:"updated_at,10,required" form:"updated_at,required" json:"updated_at,required"`
}

==================== 通知数据 ====================

var CreateResp_Data_DEFAULT *NotifyItem
var GetResp_Data_DEFAULT *NotifyItem

func NewNotifyItem

func NewNotifyItem() *NotifyItem

func (*NotifyItem) GetContent

func (p *NotifyItem) GetContent() (v string)

func (*NotifyItem) GetCreatedAt

func (p *NotifyItem) GetCreatedAt() (v string)

func (*NotifyItem) GetEndAt

func (p *NotifyItem) GetEndAt() (v string)

func (*NotifyItem) GetID

func (p *NotifyItem) GetID() (v int64)

func (*NotifyItem) GetLevel

func (p *NotifyItem) GetLevel() (v string)

func (*NotifyItem) GetStartAt

func (p *NotifyItem) GetStartAt() (v string)

func (*NotifyItem) GetStatus

func (p *NotifyItem) GetStatus() (v int32)

func (*NotifyItem) GetTitle

func (p *NotifyItem) GetTitle() (v string)

func (*NotifyItem) GetType

func (p *NotifyItem) GetType() (v string)

func (*NotifyItem) GetUpdatedAt

func (p *NotifyItem) GetUpdatedAt() (v string)

func (*NotifyItem) InitDefault

func (p *NotifyItem) InitDefault()

func (*NotifyItem) IsSetEndAt

func (p *NotifyItem) IsSetEndAt() bool

func (*NotifyItem) IsSetStartAt

func (p *NotifyItem) IsSetStartAt() bool

func (*NotifyItem) Read

func (p *NotifyItem) Read(iprot thrift.TProtocol) (err error)

func (*NotifyItem) ReadField1

func (p *NotifyItem) ReadField1(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField2

func (p *NotifyItem) ReadField2(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField3

func (p *NotifyItem) ReadField3(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField4

func (p *NotifyItem) ReadField4(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField5

func (p *NotifyItem) ReadField5(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField6

func (p *NotifyItem) ReadField6(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField7

func (p *NotifyItem) ReadField7(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField8

func (p *NotifyItem) ReadField8(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField9

func (p *NotifyItem) ReadField9(iprot thrift.TProtocol) error

func (*NotifyItem) ReadField10

func (p *NotifyItem) ReadField10(iprot thrift.TProtocol) error

func (*NotifyItem) String

func (p *NotifyItem) String() string

func (*NotifyItem) Write

func (p *NotifyItem) Write(oprot thrift.TProtocol) (err error)

type NotifyLevel

type NotifyLevel struct {
	// info / warning / error / success
	Value string `thrift:"value,1,required" form:"value,required" json:"value,required"`
}

NotifyLevel 通知级别

func NewNotifyLevel

func NewNotifyLevel() *NotifyLevel

func (*NotifyLevel) GetValue

func (p *NotifyLevel) GetValue() (v string)

func (*NotifyLevel) InitDefault

func (p *NotifyLevel) InitDefault()

func (*NotifyLevel) Read

func (p *NotifyLevel) Read(iprot thrift.TProtocol) (err error)

func (*NotifyLevel) ReadField1

func (p *NotifyLevel) ReadField1(iprot thrift.TProtocol) error

func (*NotifyLevel) String

func (p *NotifyLevel) String() string

func (*NotifyLevel) Write

func (p *NotifyLevel) Write(oprot thrift.TProtocol) (err error)

type NotifyService

type NotifyService interface {
	// List 通知列表(管理)
	List(ctx context.Context, req *ListReq) (r *ListResp, err error)
	// Active 当前活跃通知(公开)
	Active(ctx context.Context, req *ActiveReq) (r *ActiveResp, err error)
	// Get 获取单条
	Get(ctx context.Context, req *GetReq) (r *GetResp, err error)
	// Create 创建
	Create(ctx context.Context, req *CreateReq) (r *CreateResp, err error)
	// Update 更新
	Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error)
	// Delete 删除
	Delete(ctx context.Context, req *DeleteReq) (r *DeleteResp, err error)
	// ==================== 我的通知(2026-10-09 IDL 化;认证=JWT/API Key 二选一) ====================
	// Mine 我的通知列表(含广播 + 定向)
	Mine(ctx context.Context, req *MineReq) (r *MineResp, err error)
	// UnreadCount 未读数(未登录防御性返回 0——历史语义,路由层实际拦截)
	UnreadCount(ctx context.Context, req *MineReq) (r *UnreadCountResp, err error)
	// MarkRead 标记已读(当前仅支持 all=true)
	MarkRead(ctx context.Context, req *MarkReadReq) (r *MarkReadResp, err error)
}

==================== 服务定义 ====================

⚠️ 站级公开公告(/api/v1/notifies/public)**不在本文件**:见 common.thrift 的 「站级公开公告」段——它必须挂在一个 /api 组不带鉴权的 IDL 域下(本域的 /api 组 挂了 UserOrAPIKey,公开端点落进来就会被误加登录门槛)。

type NotifyServiceActiveArgs

type NotifyServiceActiveArgs struct {
	Req *ActiveReq `thrift:"req,1"`
}

func NewNotifyServiceActiveArgs

func NewNotifyServiceActiveArgs() *NotifyServiceActiveArgs

func (*NotifyServiceActiveArgs) GetReq

func (p *NotifyServiceActiveArgs) GetReq() (v *ActiveReq)

func (*NotifyServiceActiveArgs) InitDefault

func (p *NotifyServiceActiveArgs) InitDefault()

func (*NotifyServiceActiveArgs) IsSetReq

func (p *NotifyServiceActiveArgs) IsSetReq() bool

func (*NotifyServiceActiveArgs) Read

func (p *NotifyServiceActiveArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceActiveArgs) ReadField1

func (p *NotifyServiceActiveArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceActiveArgs) String

func (p *NotifyServiceActiveArgs) String() string

func (*NotifyServiceActiveArgs) Write

func (p *NotifyServiceActiveArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceActiveResult

type NotifyServiceActiveResult struct {
	Success *ActiveResp `thrift:"success,0,optional"`
}

func NewNotifyServiceActiveResult

func NewNotifyServiceActiveResult() *NotifyServiceActiveResult

func (*NotifyServiceActiveResult) GetSuccess

func (p *NotifyServiceActiveResult) GetSuccess() (v *ActiveResp)

func (*NotifyServiceActiveResult) InitDefault

func (p *NotifyServiceActiveResult) InitDefault()

func (*NotifyServiceActiveResult) IsSetSuccess

func (p *NotifyServiceActiveResult) IsSetSuccess() bool

func (*NotifyServiceActiveResult) Read

func (p *NotifyServiceActiveResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceActiveResult) ReadField0

func (p *NotifyServiceActiveResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceActiveResult) String

func (p *NotifyServiceActiveResult) String() string

func (*NotifyServiceActiveResult) Write

func (p *NotifyServiceActiveResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceClient

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

func NewNotifyServiceClient

func NewNotifyServiceClient(c thrift.TClient) *NotifyServiceClient

func NewNotifyServiceClientProtocol

func NewNotifyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *NotifyServiceClient

func (*NotifyServiceClient) Active

func (p *NotifyServiceClient) Active(ctx context.Context, req *ActiveReq) (r *ActiveResp, err error)

func (*NotifyServiceClient) Client_

func (p *NotifyServiceClient) Client_() thrift.TClient

func (*NotifyServiceClient) Create

func (p *NotifyServiceClient) Create(ctx context.Context, req *CreateReq) (r *CreateResp, err error)

func (*NotifyServiceClient) Delete

func (p *NotifyServiceClient) Delete(ctx context.Context, req *DeleteReq) (r *DeleteResp, err error)

func (*NotifyServiceClient) Get

func (p *NotifyServiceClient) Get(ctx context.Context, req *GetReq) (r *GetResp, err error)

func (*NotifyServiceClient) List

func (p *NotifyServiceClient) List(ctx context.Context, req *ListReq) (r *ListResp, err error)

func (*NotifyServiceClient) MarkRead added in v0.9.0

func (p *NotifyServiceClient) MarkRead(ctx context.Context, req *MarkReadReq) (r *MarkReadResp, err error)

func (*NotifyServiceClient) Mine added in v0.9.0

func (p *NotifyServiceClient) Mine(ctx context.Context, req *MineReq) (r *MineResp, err error)

func (*NotifyServiceClient) UnreadCount added in v0.9.0

func (p *NotifyServiceClient) UnreadCount(ctx context.Context, req *MineReq) (r *UnreadCountResp, err error)

func (*NotifyServiceClient) Update

func (p *NotifyServiceClient) Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error)

type NotifyServiceCreateArgs

type NotifyServiceCreateArgs struct {
	Req *CreateReq `thrift:"req,1"`
}

func NewNotifyServiceCreateArgs

func NewNotifyServiceCreateArgs() *NotifyServiceCreateArgs

func (*NotifyServiceCreateArgs) GetReq

func (p *NotifyServiceCreateArgs) GetReq() (v *CreateReq)

func (*NotifyServiceCreateArgs) InitDefault

func (p *NotifyServiceCreateArgs) InitDefault()

func (*NotifyServiceCreateArgs) IsSetReq

func (p *NotifyServiceCreateArgs) IsSetReq() bool

func (*NotifyServiceCreateArgs) Read

func (p *NotifyServiceCreateArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceCreateArgs) ReadField1

func (p *NotifyServiceCreateArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceCreateArgs) String

func (p *NotifyServiceCreateArgs) String() string

func (*NotifyServiceCreateArgs) Write

func (p *NotifyServiceCreateArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceCreateResult

type NotifyServiceCreateResult struct {
	Success *CreateResp `thrift:"success,0,optional"`
}

func NewNotifyServiceCreateResult

func NewNotifyServiceCreateResult() *NotifyServiceCreateResult

func (*NotifyServiceCreateResult) GetSuccess

func (p *NotifyServiceCreateResult) GetSuccess() (v *CreateResp)

func (*NotifyServiceCreateResult) InitDefault

func (p *NotifyServiceCreateResult) InitDefault()

func (*NotifyServiceCreateResult) IsSetSuccess

func (p *NotifyServiceCreateResult) IsSetSuccess() bool

func (*NotifyServiceCreateResult) Read

func (p *NotifyServiceCreateResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceCreateResult) ReadField0

func (p *NotifyServiceCreateResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceCreateResult) String

func (p *NotifyServiceCreateResult) String() string

func (*NotifyServiceCreateResult) Write

func (p *NotifyServiceCreateResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceDeleteArgs

type NotifyServiceDeleteArgs struct {
	Req *DeleteReq `thrift:"req,1"`
}

func NewNotifyServiceDeleteArgs

func NewNotifyServiceDeleteArgs() *NotifyServiceDeleteArgs

func (*NotifyServiceDeleteArgs) GetReq

func (p *NotifyServiceDeleteArgs) GetReq() (v *DeleteReq)

func (*NotifyServiceDeleteArgs) InitDefault

func (p *NotifyServiceDeleteArgs) InitDefault()

func (*NotifyServiceDeleteArgs) IsSetReq

func (p *NotifyServiceDeleteArgs) IsSetReq() bool

func (*NotifyServiceDeleteArgs) Read

func (p *NotifyServiceDeleteArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceDeleteArgs) ReadField1

func (p *NotifyServiceDeleteArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceDeleteArgs) String

func (p *NotifyServiceDeleteArgs) String() string

func (*NotifyServiceDeleteArgs) Write

func (p *NotifyServiceDeleteArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceDeleteResult

type NotifyServiceDeleteResult struct {
	Success *DeleteResp `thrift:"success,0,optional"`
}

func NewNotifyServiceDeleteResult

func NewNotifyServiceDeleteResult() *NotifyServiceDeleteResult

func (*NotifyServiceDeleteResult) GetSuccess

func (p *NotifyServiceDeleteResult) GetSuccess() (v *DeleteResp)

func (*NotifyServiceDeleteResult) InitDefault

func (p *NotifyServiceDeleteResult) InitDefault()

func (*NotifyServiceDeleteResult) IsSetSuccess

func (p *NotifyServiceDeleteResult) IsSetSuccess() bool

func (*NotifyServiceDeleteResult) Read

func (p *NotifyServiceDeleteResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceDeleteResult) ReadField0

func (p *NotifyServiceDeleteResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceDeleteResult) String

func (p *NotifyServiceDeleteResult) String() string

func (*NotifyServiceDeleteResult) Write

func (p *NotifyServiceDeleteResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceGetArgs

type NotifyServiceGetArgs struct {
	Req *GetReq `thrift:"req,1"`
}

func NewNotifyServiceGetArgs

func NewNotifyServiceGetArgs() *NotifyServiceGetArgs

func (*NotifyServiceGetArgs) GetReq

func (p *NotifyServiceGetArgs) GetReq() (v *GetReq)

func (*NotifyServiceGetArgs) InitDefault

func (p *NotifyServiceGetArgs) InitDefault()

func (*NotifyServiceGetArgs) IsSetReq

func (p *NotifyServiceGetArgs) IsSetReq() bool

func (*NotifyServiceGetArgs) Read

func (p *NotifyServiceGetArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceGetArgs) ReadField1

func (p *NotifyServiceGetArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceGetArgs) String

func (p *NotifyServiceGetArgs) String() string

func (*NotifyServiceGetArgs) Write

func (p *NotifyServiceGetArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceGetResult

type NotifyServiceGetResult struct {
	Success *GetResp `thrift:"success,0,optional"`
}

func NewNotifyServiceGetResult

func NewNotifyServiceGetResult() *NotifyServiceGetResult

func (*NotifyServiceGetResult) GetSuccess

func (p *NotifyServiceGetResult) GetSuccess() (v *GetResp)

func (*NotifyServiceGetResult) InitDefault

func (p *NotifyServiceGetResult) InitDefault()

func (*NotifyServiceGetResult) IsSetSuccess

func (p *NotifyServiceGetResult) IsSetSuccess() bool

func (*NotifyServiceGetResult) Read

func (p *NotifyServiceGetResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceGetResult) ReadField0

func (p *NotifyServiceGetResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceGetResult) String

func (p *NotifyServiceGetResult) String() string

func (*NotifyServiceGetResult) Write

func (p *NotifyServiceGetResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceListArgs

type NotifyServiceListArgs struct {
	Req *ListReq `thrift:"req,1"`
}

func NewNotifyServiceListArgs

func NewNotifyServiceListArgs() *NotifyServiceListArgs

func (*NotifyServiceListArgs) GetReq

func (p *NotifyServiceListArgs) GetReq() (v *ListReq)

func (*NotifyServiceListArgs) InitDefault

func (p *NotifyServiceListArgs) InitDefault()

func (*NotifyServiceListArgs) IsSetReq

func (p *NotifyServiceListArgs) IsSetReq() bool

func (*NotifyServiceListArgs) Read

func (p *NotifyServiceListArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceListArgs) ReadField1

func (p *NotifyServiceListArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceListArgs) String

func (p *NotifyServiceListArgs) String() string

func (*NotifyServiceListArgs) Write

func (p *NotifyServiceListArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceListResult

type NotifyServiceListResult struct {
	Success *ListResp `thrift:"success,0,optional"`
}

func NewNotifyServiceListResult

func NewNotifyServiceListResult() *NotifyServiceListResult

func (*NotifyServiceListResult) GetSuccess

func (p *NotifyServiceListResult) GetSuccess() (v *ListResp)

func (*NotifyServiceListResult) InitDefault

func (p *NotifyServiceListResult) InitDefault()

func (*NotifyServiceListResult) IsSetSuccess

func (p *NotifyServiceListResult) IsSetSuccess() bool

func (*NotifyServiceListResult) Read

func (p *NotifyServiceListResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceListResult) ReadField0

func (p *NotifyServiceListResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceListResult) String

func (p *NotifyServiceListResult) String() string

func (*NotifyServiceListResult) Write

func (p *NotifyServiceListResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceMarkReadArgs added in v0.9.0

type NotifyServiceMarkReadArgs struct {
	Req *MarkReadReq `thrift:"req,1"`
}

func NewNotifyServiceMarkReadArgs added in v0.9.0

func NewNotifyServiceMarkReadArgs() *NotifyServiceMarkReadArgs

func (*NotifyServiceMarkReadArgs) GetReq added in v0.9.0

func (p *NotifyServiceMarkReadArgs) GetReq() (v *MarkReadReq)

func (*NotifyServiceMarkReadArgs) InitDefault added in v0.9.0

func (p *NotifyServiceMarkReadArgs) InitDefault()

func (*NotifyServiceMarkReadArgs) IsSetReq added in v0.9.0

func (p *NotifyServiceMarkReadArgs) IsSetReq() bool

func (*NotifyServiceMarkReadArgs) Read added in v0.9.0

func (p *NotifyServiceMarkReadArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceMarkReadArgs) ReadField1 added in v0.9.0

func (p *NotifyServiceMarkReadArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceMarkReadArgs) String added in v0.9.0

func (p *NotifyServiceMarkReadArgs) String() string

func (*NotifyServiceMarkReadArgs) Write added in v0.9.0

func (p *NotifyServiceMarkReadArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceMarkReadResult added in v0.9.0

type NotifyServiceMarkReadResult struct {
	Success *MarkReadResp `thrift:"success,0,optional"`
}

func NewNotifyServiceMarkReadResult added in v0.9.0

func NewNotifyServiceMarkReadResult() *NotifyServiceMarkReadResult

func (*NotifyServiceMarkReadResult) GetSuccess added in v0.9.0

func (p *NotifyServiceMarkReadResult) GetSuccess() (v *MarkReadResp)

func (*NotifyServiceMarkReadResult) InitDefault added in v0.9.0

func (p *NotifyServiceMarkReadResult) InitDefault()

func (*NotifyServiceMarkReadResult) IsSetSuccess added in v0.9.0

func (p *NotifyServiceMarkReadResult) IsSetSuccess() bool

func (*NotifyServiceMarkReadResult) Read added in v0.9.0

func (p *NotifyServiceMarkReadResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceMarkReadResult) ReadField0 added in v0.9.0

func (p *NotifyServiceMarkReadResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceMarkReadResult) String added in v0.9.0

func (p *NotifyServiceMarkReadResult) String() string

func (*NotifyServiceMarkReadResult) Write added in v0.9.0

func (p *NotifyServiceMarkReadResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceMineArgs added in v0.9.0

type NotifyServiceMineArgs struct {
	Req *MineReq `thrift:"req,1"`
}

func NewNotifyServiceMineArgs added in v0.9.0

func NewNotifyServiceMineArgs() *NotifyServiceMineArgs

func (*NotifyServiceMineArgs) GetReq added in v0.9.0

func (p *NotifyServiceMineArgs) GetReq() (v *MineReq)

func (*NotifyServiceMineArgs) InitDefault added in v0.9.0

func (p *NotifyServiceMineArgs) InitDefault()

func (*NotifyServiceMineArgs) IsSetReq added in v0.9.0

func (p *NotifyServiceMineArgs) IsSetReq() bool

func (*NotifyServiceMineArgs) Read added in v0.9.0

func (p *NotifyServiceMineArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceMineArgs) ReadField1 added in v0.9.0

func (p *NotifyServiceMineArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceMineArgs) String added in v0.9.0

func (p *NotifyServiceMineArgs) String() string

func (*NotifyServiceMineArgs) Write added in v0.9.0

func (p *NotifyServiceMineArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceMineResult added in v0.9.0

type NotifyServiceMineResult struct {
	Success *MineResp `thrift:"success,0,optional"`
}

func NewNotifyServiceMineResult added in v0.9.0

func NewNotifyServiceMineResult() *NotifyServiceMineResult

func (*NotifyServiceMineResult) GetSuccess added in v0.9.0

func (p *NotifyServiceMineResult) GetSuccess() (v *MineResp)

func (*NotifyServiceMineResult) InitDefault added in v0.9.0

func (p *NotifyServiceMineResult) InitDefault()

func (*NotifyServiceMineResult) IsSetSuccess added in v0.9.0

func (p *NotifyServiceMineResult) IsSetSuccess() bool

func (*NotifyServiceMineResult) Read added in v0.9.0

func (p *NotifyServiceMineResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceMineResult) ReadField0 added in v0.9.0

func (p *NotifyServiceMineResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceMineResult) String added in v0.9.0

func (p *NotifyServiceMineResult) String() string

func (*NotifyServiceMineResult) Write added in v0.9.0

func (p *NotifyServiceMineResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceProcessor

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

func NewNotifyServiceProcessor

func NewNotifyServiceProcessor(handler NotifyService) *NotifyServiceProcessor

func (*NotifyServiceProcessor) AddToProcessorMap

func (p *NotifyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*NotifyServiceProcessor) GetProcessorFunction

func (p *NotifyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*NotifyServiceProcessor) Process

func (p *NotifyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*NotifyServiceProcessor) ProcessorMap

type NotifyServiceUnreadCountArgs added in v0.9.0

type NotifyServiceUnreadCountArgs struct {
	Req *MineReq `thrift:"req,1"`
}

func NewNotifyServiceUnreadCountArgs added in v0.9.0

func NewNotifyServiceUnreadCountArgs() *NotifyServiceUnreadCountArgs

func (*NotifyServiceUnreadCountArgs) GetReq added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) GetReq() (v *MineReq)

func (*NotifyServiceUnreadCountArgs) InitDefault added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) InitDefault()

func (*NotifyServiceUnreadCountArgs) IsSetReq added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) IsSetReq() bool

func (*NotifyServiceUnreadCountArgs) Read added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceUnreadCountArgs) ReadField1 added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceUnreadCountArgs) String added in v0.9.0

func (*NotifyServiceUnreadCountArgs) Write added in v0.9.0

func (p *NotifyServiceUnreadCountArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceUnreadCountResult added in v0.9.0

type NotifyServiceUnreadCountResult struct {
	Success *UnreadCountResp `thrift:"success,0,optional"`
}

func NewNotifyServiceUnreadCountResult added in v0.9.0

func NewNotifyServiceUnreadCountResult() *NotifyServiceUnreadCountResult

func (*NotifyServiceUnreadCountResult) GetSuccess added in v0.9.0

func (p *NotifyServiceUnreadCountResult) GetSuccess() (v *UnreadCountResp)

func (*NotifyServiceUnreadCountResult) InitDefault added in v0.9.0

func (p *NotifyServiceUnreadCountResult) InitDefault()

func (*NotifyServiceUnreadCountResult) IsSetSuccess added in v0.9.0

func (p *NotifyServiceUnreadCountResult) IsSetSuccess() bool

func (*NotifyServiceUnreadCountResult) Read added in v0.9.0

func (*NotifyServiceUnreadCountResult) ReadField0 added in v0.9.0

func (*NotifyServiceUnreadCountResult) String added in v0.9.0

func (*NotifyServiceUnreadCountResult) Write added in v0.9.0

func (p *NotifyServiceUnreadCountResult) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceUpdateArgs

type NotifyServiceUpdateArgs struct {
	Req *UpdateReq `thrift:"req,1"`
}

func NewNotifyServiceUpdateArgs

func NewNotifyServiceUpdateArgs() *NotifyServiceUpdateArgs

func (*NotifyServiceUpdateArgs) GetReq

func (p *NotifyServiceUpdateArgs) GetReq() (v *UpdateReq)

func (*NotifyServiceUpdateArgs) InitDefault

func (p *NotifyServiceUpdateArgs) InitDefault()

func (*NotifyServiceUpdateArgs) IsSetReq

func (p *NotifyServiceUpdateArgs) IsSetReq() bool

func (*NotifyServiceUpdateArgs) Read

func (p *NotifyServiceUpdateArgs) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceUpdateArgs) ReadField1

func (p *NotifyServiceUpdateArgs) ReadField1(iprot thrift.TProtocol) error

func (*NotifyServiceUpdateArgs) String

func (p *NotifyServiceUpdateArgs) String() string

func (*NotifyServiceUpdateArgs) Write

func (p *NotifyServiceUpdateArgs) Write(oprot thrift.TProtocol) (err error)

type NotifyServiceUpdateResult

type NotifyServiceUpdateResult struct {
	Success *UpdateResp `thrift:"success,0,optional"`
}

func NewNotifyServiceUpdateResult

func NewNotifyServiceUpdateResult() *NotifyServiceUpdateResult

func (*NotifyServiceUpdateResult) GetSuccess

func (p *NotifyServiceUpdateResult) GetSuccess() (v *UpdateResp)

func (*NotifyServiceUpdateResult) InitDefault

func (p *NotifyServiceUpdateResult) InitDefault()

func (*NotifyServiceUpdateResult) IsSetSuccess

func (p *NotifyServiceUpdateResult) IsSetSuccess() bool

func (*NotifyServiceUpdateResult) Read

func (p *NotifyServiceUpdateResult) Read(iprot thrift.TProtocol) (err error)

func (*NotifyServiceUpdateResult) ReadField0

func (p *NotifyServiceUpdateResult) ReadField0(iprot thrift.TProtocol) error

func (*NotifyServiceUpdateResult) String

func (p *NotifyServiceUpdateResult) String() string

func (*NotifyServiceUpdateResult) Write

func (p *NotifyServiceUpdateResult) Write(oprot thrift.TProtocol) (err error)

type NotifyType

type NotifyType struct {
	// system / feature / maintenance
	Value string `thrift:"value,1,required" form:"value,required" json:"value,required"`
}

==================== 通用 ==================== NotifyType 通知类型

func NewNotifyType

func NewNotifyType() *NotifyType

func (*NotifyType) GetValue

func (p *NotifyType) GetValue() (v string)

func (*NotifyType) InitDefault

func (p *NotifyType) InitDefault()

func (*NotifyType) Read

func (p *NotifyType) Read(iprot thrift.TProtocol) (err error)

func (*NotifyType) ReadField1

func (p *NotifyType) ReadField1(iprot thrift.TProtocol) error

func (*NotifyType) String

func (p *NotifyType) String() string

func (*NotifyType) Write

func (p *NotifyType) Write(oprot thrift.TProtocol) (err error)

type UnreadCountData added in v0.9.0

type UnreadCountData struct {
	Unread int64 `thrift:"unread,1,required" form:"unread,required" json:"unread,required"`
}
var UnreadCountResp_Data_DEFAULT *UnreadCountData

func NewUnreadCountData added in v0.9.0

func NewUnreadCountData() *UnreadCountData

func (*UnreadCountData) GetUnread added in v0.9.0

func (p *UnreadCountData) GetUnread() (v int64)

func (*UnreadCountData) InitDefault added in v0.9.0

func (p *UnreadCountData) InitDefault()

func (*UnreadCountData) Read added in v0.9.0

func (p *UnreadCountData) Read(iprot thrift.TProtocol) (err error)

func (*UnreadCountData) ReadField1 added in v0.9.0

func (p *UnreadCountData) ReadField1(iprot thrift.TProtocol) error

func (*UnreadCountData) String added in v0.9.0

func (p *UnreadCountData) String() string

func (*UnreadCountData) Write added in v0.9.0

func (p *UnreadCountData) Write(oprot thrift.TProtocol) (err error)

type UnreadCountResp added in v0.9.0

type UnreadCountResp struct {
	Code    int32            `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string           `thrift:"message,2,required" form:"message,required" json:"message,required"`
	Data    *UnreadCountData `thrift:"data,3,optional" form:"data" json:"data,omitempty"`
}
var NotifyServiceUnreadCountResult_Success_DEFAULT *UnreadCountResp

func NewUnreadCountResp added in v0.9.0

func NewUnreadCountResp() *UnreadCountResp

func (*UnreadCountResp) GetCode added in v0.9.0

func (p *UnreadCountResp) GetCode() (v int32)

func (*UnreadCountResp) GetData added in v0.9.0

func (p *UnreadCountResp) GetData() (v *UnreadCountData)

func (*UnreadCountResp) GetMessage added in v0.9.0

func (p *UnreadCountResp) GetMessage() (v string)

func (*UnreadCountResp) InitDefault added in v0.9.0

func (p *UnreadCountResp) InitDefault()

func (*UnreadCountResp) IsSetData added in v0.9.0

func (p *UnreadCountResp) IsSetData() bool

func (*UnreadCountResp) Read added in v0.9.0

func (p *UnreadCountResp) Read(iprot thrift.TProtocol) (err error)

func (*UnreadCountResp) ReadField1 added in v0.9.0

func (p *UnreadCountResp) ReadField1(iprot thrift.TProtocol) error

func (*UnreadCountResp) ReadField2 added in v0.9.0

func (p *UnreadCountResp) ReadField2(iprot thrift.TProtocol) error

func (*UnreadCountResp) ReadField3 added in v0.9.0

func (p *UnreadCountResp) ReadField3(iprot thrift.TProtocol) error

func (*UnreadCountResp) String added in v0.9.0

func (p *UnreadCountResp) String() string

func (*UnreadCountResp) Write added in v0.9.0

func (p *UnreadCountResp) Write(oprot thrift.TProtocol) (err error)

type UpdateReq

type UpdateReq struct {
	ID      int64   `thrift:"id,1,required" json:"id,required" path:"id,required"`
	Title   *string `thrift:"title,2,optional" form:"title" json:"title,omitempty"`
	Content *string `thrift:"content,3,optional" form:"content" json:"content,omitempty"`
	Type    *string `thrift:"type,4,optional" form:"type" json:"type,omitempty"`
	Level   *string `thrift:"level,5,optional" form:"level" json:"level,omitempty"`
	Status  *int32  `thrift:"status,6,optional" form:"status" json:"status,omitempty"`
	StartAt *string `thrift:"start_at,7,optional" form:"start_at" json:"start_at,omitempty"`
	EndAt   *string `thrift:"end_at,8,optional" form:"end_at" json:"end_at,omitempty"`
}

==================== 更新 ====================

var NotifyServiceUpdateArgs_Req_DEFAULT *UpdateReq

func NewUpdateReq

func NewUpdateReq() *UpdateReq

func (*UpdateReq) GetContent

func (p *UpdateReq) GetContent() (v string)

func (*UpdateReq) GetEndAt

func (p *UpdateReq) GetEndAt() (v string)

func (*UpdateReq) GetID

func (p *UpdateReq) GetID() (v int64)

func (*UpdateReq) GetLevel

func (p *UpdateReq) GetLevel() (v string)

func (*UpdateReq) GetStartAt

func (p *UpdateReq) GetStartAt() (v string)

func (*UpdateReq) GetStatus

func (p *UpdateReq) GetStatus() (v int32)

func (*UpdateReq) GetTitle

func (p *UpdateReq) GetTitle() (v string)

func (*UpdateReq) GetType

func (p *UpdateReq) GetType() (v string)

func (*UpdateReq) InitDefault

func (p *UpdateReq) InitDefault()

func (*UpdateReq) IsSetContent

func (p *UpdateReq) IsSetContent() bool

func (*UpdateReq) IsSetEndAt

func (p *UpdateReq) IsSetEndAt() bool

func (*UpdateReq) IsSetLevel

func (p *UpdateReq) IsSetLevel() bool

func (*UpdateReq) IsSetStartAt

func (p *UpdateReq) IsSetStartAt() bool

func (*UpdateReq) IsSetStatus

func (p *UpdateReq) IsSetStatus() bool

func (*UpdateReq) IsSetTitle

func (p *UpdateReq) IsSetTitle() bool

func (*UpdateReq) IsSetType

func (p *UpdateReq) IsSetType() bool

func (*UpdateReq) Read

func (p *UpdateReq) Read(iprot thrift.TProtocol) (err error)

func (*UpdateReq) ReadField1

func (p *UpdateReq) ReadField1(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField2

func (p *UpdateReq) ReadField2(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField3

func (p *UpdateReq) ReadField3(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField4

func (p *UpdateReq) ReadField4(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField5

func (p *UpdateReq) ReadField5(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField6

func (p *UpdateReq) ReadField6(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField7

func (p *UpdateReq) ReadField7(iprot thrift.TProtocol) error

func (*UpdateReq) ReadField8

func (p *UpdateReq) ReadField8(iprot thrift.TProtocol) error

func (*UpdateReq) String

func (p *UpdateReq) String() string

func (*UpdateReq) Write

func (p *UpdateReq) Write(oprot thrift.TProtocol) (err error)

type UpdateResp

type UpdateResp struct {
	Code    int32  `thrift:"code,1,required" form:"code,required" json:"code,required"`
	Message string `thrift:"message,2,required" form:"message,required" json:"message,required"`
}
var NotifyServiceUpdateResult_Success_DEFAULT *UpdateResp

func NewUpdateResp

func NewUpdateResp() *UpdateResp

func (*UpdateResp) GetCode

func (p *UpdateResp) GetCode() (v int32)

func (*UpdateResp) GetMessage

func (p *UpdateResp) GetMessage() (v string)

func (*UpdateResp) InitDefault

func (p *UpdateResp) InitDefault()

func (*UpdateResp) Read

func (p *UpdateResp) Read(iprot thrift.TProtocol) (err error)

func (*UpdateResp) ReadField1

func (p *UpdateResp) ReadField1(iprot thrift.TProtocol) error

func (*UpdateResp) ReadField2

func (p *UpdateResp) ReadField2(iprot thrift.TProtocol) error

func (*UpdateResp) String

func (p *UpdateResp) String() string

func (*UpdateResp) Write

func (p *UpdateResp) Write(oprot thrift.TProtocol) (err error)

type UserNotifyItemData added in v0.9.0

type UserNotifyItemData struct {
	ID      int64  `thrift:"id,1,required" form:"id,required" json:"id,required"`
	Title   string `thrift:"title,2,required" form:"title,required" json:"title,required"`
	Content string `thrift:"content,3,required" form:"content,required" json:"content,required"`
	Type    string `thrift:"type,4,required" form:"type,required" json:"type,required"`
	Level   string `thrift:"level,5,required" form:"level,required" json:"level,required"`
	// RFC3339Nano;缺省 = 未读
	ReadAt    *string `thrift:"read_at,6,optional" form:"read_at" json:"read_at,omitempty"`
	CreatedAt string  `thrift:"created_at,7,required" form:"created_at,required" json:"created_at,required"`
	IsRead    bool    `thrift:"is_read,8,required" form:"is_read,required" json:"is_read,required"`
}

func NewUserNotifyItemData added in v0.9.0

func NewUserNotifyItemData() *UserNotifyItemData

func (*UserNotifyItemData) GetContent added in v0.9.0

func (p *UserNotifyItemData) GetContent() (v string)

func (*UserNotifyItemData) GetCreatedAt added in v0.9.0

func (p *UserNotifyItemData) GetCreatedAt() (v string)

func (*UserNotifyItemData) GetID added in v0.9.0

func (p *UserNotifyItemData) GetID() (v int64)

func (*UserNotifyItemData) GetIsRead added in v0.9.0

func (p *UserNotifyItemData) GetIsRead() (v bool)

func (*UserNotifyItemData) GetLevel added in v0.9.0

func (p *UserNotifyItemData) GetLevel() (v string)

func (*UserNotifyItemData) GetReadAt added in v0.9.0

func (p *UserNotifyItemData) GetReadAt() (v string)

func (*UserNotifyItemData) GetTitle added in v0.9.0

func (p *UserNotifyItemData) GetTitle() (v string)

func (*UserNotifyItemData) GetType added in v0.9.0

func (p *UserNotifyItemData) GetType() (v string)

func (*UserNotifyItemData) InitDefault added in v0.9.0

func (p *UserNotifyItemData) InitDefault()

func (*UserNotifyItemData) IsSetReadAt added in v0.9.0

func (p *UserNotifyItemData) IsSetReadAt() bool

func (*UserNotifyItemData) Read added in v0.9.0

func (p *UserNotifyItemData) Read(iprot thrift.TProtocol) (err error)

func (*UserNotifyItemData) ReadField1 added in v0.9.0

func (p *UserNotifyItemData) ReadField1(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField2 added in v0.9.0

func (p *UserNotifyItemData) ReadField2(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField3 added in v0.9.0

func (p *UserNotifyItemData) ReadField3(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField4 added in v0.9.0

func (p *UserNotifyItemData) ReadField4(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField5 added in v0.9.0

func (p *UserNotifyItemData) ReadField5(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField6 added in v0.9.0

func (p *UserNotifyItemData) ReadField6(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField7 added in v0.9.0

func (p *UserNotifyItemData) ReadField7(iprot thrift.TProtocol) error

func (*UserNotifyItemData) ReadField8 added in v0.9.0

func (p *UserNotifyItemData) ReadField8(iprot thrift.TProtocol) error

func (*UserNotifyItemData) String added in v0.9.0

func (p *UserNotifyItemData) String() string

func (*UserNotifyItemData) Write added in v0.9.0

func (p *UserNotifyItemData) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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