Documentation
¶
Index ¶
- Variables
- type ActiveData
- func (p *ActiveData) GetItems() (v []*NotifyItem)
- func (p *ActiveData) InitDefault()
- func (p *ActiveData) Read(iprot thrift.TProtocol) (err error)
- func (p *ActiveData) ReadField1(iprot thrift.TProtocol) error
- func (p *ActiveData) String() string
- func (p *ActiveData) Write(oprot thrift.TProtocol) (err error)
- type ActiveReq
- func (p *ActiveReq) GetType() (v string)
- func (p *ActiveReq) InitDefault()
- func (p *ActiveReq) IsSetType() bool
- func (p *ActiveReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ActiveReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ActiveReq) String() string
- func (p *ActiveReq) Write(oprot thrift.TProtocol) (err error)
- type ActiveResp
- func (p *ActiveResp) GetCode() (v int32)
- func (p *ActiveResp) GetData() (v *ActiveData)
- func (p *ActiveResp) GetMessage() (v string)
- func (p *ActiveResp) InitDefault()
- func (p *ActiveResp) IsSetData() bool
- func (p *ActiveResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ActiveResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ActiveResp) ReadField2(iprot thrift.TProtocol) error
- func (p *ActiveResp) ReadField3(iprot thrift.TProtocol) error
- func (p *ActiveResp) String() string
- func (p *ActiveResp) Write(oprot thrift.TProtocol) (err error)
- type CreateReq
- func (p *CreateReq) GetContent() (v string)
- func (p *CreateReq) GetEndAt() (v string)
- func (p *CreateReq) GetLevel() (v string)
- func (p *CreateReq) GetStartAt() (v string)
- func (p *CreateReq) GetStatus() (v int32)
- func (p *CreateReq) GetTitle() (v string)
- func (p *CreateReq) GetType() (v string)
- func (p *CreateReq) InitDefault()
- func (p *CreateReq) IsSetEndAt() bool
- func (p *CreateReq) IsSetStartAt() bool
- func (p *CreateReq) IsSetStatus() bool
- func (p *CreateReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField4(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField5(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField6(iprot thrift.TProtocol) error
- func (p *CreateReq) ReadField7(iprot thrift.TProtocol) error
- func (p *CreateReq) String() string
- func (p *CreateReq) Write(oprot thrift.TProtocol) (err error)
- type CreateResp
- func (p *CreateResp) GetCode() (v int32)
- func (p *CreateResp) GetData() (v *NotifyItem)
- func (p *CreateResp) GetMessage() (v string)
- func (p *CreateResp) InitDefault()
- func (p *CreateResp) IsSetData() bool
- func (p *CreateResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateResp) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateResp) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateResp) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateResp) String() string
- func (p *CreateResp) Write(oprot thrift.TProtocol) (err error)
- type DeleteReq
- type DeleteResp
- func (p *DeleteResp) GetCode() (v int32)
- func (p *DeleteResp) GetMessage() (v string)
- func (p *DeleteResp) InitDefault()
- func (p *DeleteResp) Read(iprot thrift.TProtocol) (err error)
- func (p *DeleteResp) ReadField1(iprot thrift.TProtocol) error
- func (p *DeleteResp) ReadField2(iprot thrift.TProtocol) error
- func (p *DeleteResp) String() string
- func (p *DeleteResp) Write(oprot thrift.TProtocol) (err error)
- type GetReq
- type GetResp
- func (p *GetResp) GetCode() (v int32)
- func (p *GetResp) GetData() (v *NotifyItem)
- func (p *GetResp) GetMessage() (v string)
- func (p *GetResp) InitDefault()
- func (p *GetResp) IsSetData() bool
- func (p *GetResp) Read(iprot thrift.TProtocol) (err error)
- func (p *GetResp) ReadField1(iprot thrift.TProtocol) error
- func (p *GetResp) ReadField2(iprot thrift.TProtocol) error
- func (p *GetResp) ReadField3(iprot thrift.TProtocol) error
- func (p *GetResp) String() string
- func (p *GetResp) Write(oprot thrift.TProtocol) (err error)
- type ListData
- func (p *ListData) GetItems() (v []*NotifyItem)
- func (p *ListData) GetPage() (v int32)
- func (p *ListData) GetPageSize() (v int32)
- func (p *ListData) GetTotal() (v int64)
- func (p *ListData) InitDefault()
- func (p *ListData) Read(iprot thrift.TProtocol) (err error)
- func (p *ListData) ReadField1(iprot thrift.TProtocol) error
- func (p *ListData) ReadField2(iprot thrift.TProtocol) error
- func (p *ListData) ReadField3(iprot thrift.TProtocol) error
- func (p *ListData) ReadField4(iprot thrift.TProtocol) error
- func (p *ListData) String() string
- func (p *ListData) Write(oprot thrift.TProtocol) (err error)
- type ListReq
- func (p *ListReq) GetLevel() (v string)
- func (p *ListReq) GetPage() (v int32)
- func (p *ListReq) GetPageSize() (v int32)
- func (p *ListReq) GetStatus() (v int32)
- func (p *ListReq) GetType() (v string)
- func (p *ListReq) InitDefault()
- func (p *ListReq) IsSetLevel() bool
- func (p *ListReq) IsSetPage() bool
- func (p *ListReq) IsSetPageSize() bool
- func (p *ListReq) IsSetStatus() bool
- func (p *ListReq) IsSetType() bool
- func (p *ListReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ListReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ListReq) ReadField2(iprot thrift.TProtocol) error
- func (p *ListReq) ReadField3(iprot thrift.TProtocol) error
- func (p *ListReq) ReadField4(iprot thrift.TProtocol) error
- func (p *ListReq) ReadField5(iprot thrift.TProtocol) error
- func (p *ListReq) String() string
- func (p *ListReq) Write(oprot thrift.TProtocol) (err error)
- type ListResp
- func (p *ListResp) GetCode() (v int32)
- func (p *ListResp) GetData() (v *ListData)
- func (p *ListResp) GetMessage() (v string)
- func (p *ListResp) InitDefault()
- func (p *ListResp) IsSetData() bool
- func (p *ListResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ListResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ListResp) ReadField2(iprot thrift.TProtocol) error
- func (p *ListResp) ReadField3(iprot thrift.TProtocol) error
- func (p *ListResp) String() string
- func (p *ListResp) Write(oprot thrift.TProtocol) (err error)
- type MarkReadData
- func (p *MarkReadData) GetMarked() (v int64)
- func (p *MarkReadData) InitDefault()
- func (p *MarkReadData) Read(iprot thrift.TProtocol) (err error)
- func (p *MarkReadData) ReadField1(iprot thrift.TProtocol) error
- func (p *MarkReadData) String() string
- func (p *MarkReadData) Write(oprot thrift.TProtocol) (err error)
- type MarkReadReq
- func (p *MarkReadReq) GetAll() (v bool)
- func (p *MarkReadReq) InitDefault()
- func (p *MarkReadReq) IsSetAll() bool
- func (p *MarkReadReq) Read(iprot thrift.TProtocol) (err error)
- func (p *MarkReadReq) ReadField1(iprot thrift.TProtocol) error
- func (p *MarkReadReq) String() string
- func (p *MarkReadReq) Write(oprot thrift.TProtocol) (err error)
- type MarkReadResp
- func (p *MarkReadResp) GetCode() (v int32)
- func (p *MarkReadResp) GetData() (v *MarkReadData)
- func (p *MarkReadResp) GetMessage() (v string)
- func (p *MarkReadResp) InitDefault()
- func (p *MarkReadResp) IsSetData() bool
- func (p *MarkReadResp) Read(iprot thrift.TProtocol) (err error)
- func (p *MarkReadResp) ReadField1(iprot thrift.TProtocol) error
- func (p *MarkReadResp) ReadField2(iprot thrift.TProtocol) error
- func (p *MarkReadResp) ReadField3(iprot thrift.TProtocol) error
- func (p *MarkReadResp) String() string
- func (p *MarkReadResp) Write(oprot thrift.TProtocol) (err error)
- type MineData
- func (p *MineData) GetItems() (v []*UserNotifyItemData)
- func (p *MineData) GetPage() (v int32)
- func (p *MineData) GetPageSize() (v int32)
- func (p *MineData) GetTotal() (v int64)
- func (p *MineData) GetTotalPages() (v int64)
- func (p *MineData) GetUnread() (v int64)
- func (p *MineData) InitDefault()
- func (p *MineData) Read(iprot thrift.TProtocol) (err error)
- func (p *MineData) ReadField1(iprot thrift.TProtocol) error
- func (p *MineData) ReadField2(iprot thrift.TProtocol) error
- func (p *MineData) ReadField3(iprot thrift.TProtocol) error
- func (p *MineData) ReadField4(iprot thrift.TProtocol) error
- func (p *MineData) ReadField5(iprot thrift.TProtocol) error
- func (p *MineData) ReadField6(iprot thrift.TProtocol) error
- func (p *MineData) String() string
- func (p *MineData) Write(oprot thrift.TProtocol) (err error)
- type MineReq
- func (p *MineReq) GetPage() (v int32)
- func (p *MineReq) GetPageSize() (v int32)
- func (p *MineReq) InitDefault()
- func (p *MineReq) IsSetPage() bool
- func (p *MineReq) IsSetPageSize() bool
- func (p *MineReq) Read(iprot thrift.TProtocol) (err error)
- func (p *MineReq) ReadField1(iprot thrift.TProtocol) error
- func (p *MineReq) ReadField2(iprot thrift.TProtocol) error
- func (p *MineReq) String() string
- func (p *MineReq) Write(oprot thrift.TProtocol) (err error)
- type MineResp
- func (p *MineResp) GetCode() (v int32)
- func (p *MineResp) GetData() (v *MineData)
- func (p *MineResp) GetMessage() (v string)
- func (p *MineResp) InitDefault()
- func (p *MineResp) IsSetData() bool
- func (p *MineResp) Read(iprot thrift.TProtocol) (err error)
- func (p *MineResp) ReadField1(iprot thrift.TProtocol) error
- func (p *MineResp) ReadField2(iprot thrift.TProtocol) error
- func (p *MineResp) ReadField3(iprot thrift.TProtocol) error
- func (p *MineResp) String() string
- func (p *MineResp) Write(oprot thrift.TProtocol) (err error)
- type NotifyItem
- func (p *NotifyItem) GetContent() (v string)
- func (p *NotifyItem) GetCreatedAt() (v string)
- func (p *NotifyItem) GetEndAt() (v string)
- func (p *NotifyItem) GetID() (v int64)
- func (p *NotifyItem) GetLevel() (v string)
- func (p *NotifyItem) GetStartAt() (v string)
- func (p *NotifyItem) GetStatus() (v int32)
- func (p *NotifyItem) GetTitle() (v string)
- func (p *NotifyItem) GetType() (v string)
- func (p *NotifyItem) GetUpdatedAt() (v string)
- func (p *NotifyItem) InitDefault()
- func (p *NotifyItem) IsSetEndAt() bool
- func (p *NotifyItem) IsSetStartAt() bool
- func (p *NotifyItem) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyItem) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField2(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField3(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField4(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField5(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField6(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField7(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField8(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField9(iprot thrift.TProtocol) error
- func (p *NotifyItem) ReadField10(iprot thrift.TProtocol) error
- func (p *NotifyItem) String() string
- func (p *NotifyItem) Write(oprot thrift.TProtocol) (err error)
- type NotifyLevel
- func (p *NotifyLevel) GetValue() (v string)
- func (p *NotifyLevel) InitDefault()
- func (p *NotifyLevel) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyLevel) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyLevel) String() string
- func (p *NotifyLevel) Write(oprot thrift.TProtocol) (err error)
- type NotifyService
- type NotifyServiceActiveArgs
- func (p *NotifyServiceActiveArgs) GetReq() (v *ActiveReq)
- func (p *NotifyServiceActiveArgs) InitDefault()
- func (p *NotifyServiceActiveArgs) IsSetReq() bool
- func (p *NotifyServiceActiveArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceActiveArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceActiveArgs) String() string
- func (p *NotifyServiceActiveArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceActiveResult
- func (p *NotifyServiceActiveResult) GetSuccess() (v *ActiveResp)
- func (p *NotifyServiceActiveResult) InitDefault()
- func (p *NotifyServiceActiveResult) IsSetSuccess() bool
- func (p *NotifyServiceActiveResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceActiveResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceActiveResult) String() string
- func (p *NotifyServiceActiveResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceClient
- func (p *NotifyServiceClient) Active(ctx context.Context, req *ActiveReq) (r *ActiveResp, err error)
- func (p *NotifyServiceClient) Client_() thrift.TClient
- func (p *NotifyServiceClient) Create(ctx context.Context, req *CreateReq) (r *CreateResp, err error)
- func (p *NotifyServiceClient) Delete(ctx context.Context, req *DeleteReq) (r *DeleteResp, err error)
- func (p *NotifyServiceClient) Get(ctx context.Context, req *GetReq) (r *GetResp, err error)
- func (p *NotifyServiceClient) List(ctx context.Context, req *ListReq) (r *ListResp, err error)
- func (p *NotifyServiceClient) MarkRead(ctx context.Context, req *MarkReadReq) (r *MarkReadResp, err error)
- func (p *NotifyServiceClient) Mine(ctx context.Context, req *MineReq) (r *MineResp, err error)
- func (p *NotifyServiceClient) UnreadCount(ctx context.Context, req *MineReq) (r *UnreadCountResp, err error)
- func (p *NotifyServiceClient) Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error)
- type NotifyServiceCreateArgs
- func (p *NotifyServiceCreateArgs) GetReq() (v *CreateReq)
- func (p *NotifyServiceCreateArgs) InitDefault()
- func (p *NotifyServiceCreateArgs) IsSetReq() bool
- func (p *NotifyServiceCreateArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceCreateArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceCreateArgs) String() string
- func (p *NotifyServiceCreateArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceCreateResult
- func (p *NotifyServiceCreateResult) GetSuccess() (v *CreateResp)
- func (p *NotifyServiceCreateResult) InitDefault()
- func (p *NotifyServiceCreateResult) IsSetSuccess() bool
- func (p *NotifyServiceCreateResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceCreateResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceCreateResult) String() string
- func (p *NotifyServiceCreateResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceDeleteArgs
- func (p *NotifyServiceDeleteArgs) GetReq() (v *DeleteReq)
- func (p *NotifyServiceDeleteArgs) InitDefault()
- func (p *NotifyServiceDeleteArgs) IsSetReq() bool
- func (p *NotifyServiceDeleteArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceDeleteArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceDeleteArgs) String() string
- func (p *NotifyServiceDeleteArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceDeleteResult
- func (p *NotifyServiceDeleteResult) GetSuccess() (v *DeleteResp)
- func (p *NotifyServiceDeleteResult) InitDefault()
- func (p *NotifyServiceDeleteResult) IsSetSuccess() bool
- func (p *NotifyServiceDeleteResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceDeleteResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceDeleteResult) String() string
- func (p *NotifyServiceDeleteResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceGetArgs
- func (p *NotifyServiceGetArgs) GetReq() (v *GetReq)
- func (p *NotifyServiceGetArgs) InitDefault()
- func (p *NotifyServiceGetArgs) IsSetReq() bool
- func (p *NotifyServiceGetArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceGetArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceGetArgs) String() string
- func (p *NotifyServiceGetArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceGetResult
- func (p *NotifyServiceGetResult) GetSuccess() (v *GetResp)
- func (p *NotifyServiceGetResult) InitDefault()
- func (p *NotifyServiceGetResult) IsSetSuccess() bool
- func (p *NotifyServiceGetResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceGetResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceGetResult) String() string
- func (p *NotifyServiceGetResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceListArgs
- func (p *NotifyServiceListArgs) GetReq() (v *ListReq)
- func (p *NotifyServiceListArgs) InitDefault()
- func (p *NotifyServiceListArgs) IsSetReq() bool
- func (p *NotifyServiceListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceListArgs) String() string
- func (p *NotifyServiceListArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceListResult
- func (p *NotifyServiceListResult) GetSuccess() (v *ListResp)
- func (p *NotifyServiceListResult) InitDefault()
- func (p *NotifyServiceListResult) IsSetSuccess() bool
- func (p *NotifyServiceListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceListResult) String() string
- func (p *NotifyServiceListResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceMarkReadArgs
- func (p *NotifyServiceMarkReadArgs) GetReq() (v *MarkReadReq)
- func (p *NotifyServiceMarkReadArgs) InitDefault()
- func (p *NotifyServiceMarkReadArgs) IsSetReq() bool
- func (p *NotifyServiceMarkReadArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceMarkReadArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceMarkReadArgs) String() string
- func (p *NotifyServiceMarkReadArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceMarkReadResult
- func (p *NotifyServiceMarkReadResult) GetSuccess() (v *MarkReadResp)
- func (p *NotifyServiceMarkReadResult) InitDefault()
- func (p *NotifyServiceMarkReadResult) IsSetSuccess() bool
- func (p *NotifyServiceMarkReadResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceMarkReadResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceMarkReadResult) String() string
- func (p *NotifyServiceMarkReadResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceMineArgs
- func (p *NotifyServiceMineArgs) GetReq() (v *MineReq)
- func (p *NotifyServiceMineArgs) InitDefault()
- func (p *NotifyServiceMineArgs) IsSetReq() bool
- func (p *NotifyServiceMineArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceMineArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceMineArgs) String() string
- func (p *NotifyServiceMineArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceMineResult
- func (p *NotifyServiceMineResult) GetSuccess() (v *MineResp)
- func (p *NotifyServiceMineResult) InitDefault()
- func (p *NotifyServiceMineResult) IsSetSuccess() bool
- func (p *NotifyServiceMineResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceMineResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceMineResult) String() string
- func (p *NotifyServiceMineResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceProcessor
- func (p *NotifyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *NotifyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *NotifyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *NotifyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type NotifyServiceUnreadCountArgs
- func (p *NotifyServiceUnreadCountArgs) GetReq() (v *MineReq)
- func (p *NotifyServiceUnreadCountArgs) InitDefault()
- func (p *NotifyServiceUnreadCountArgs) IsSetReq() bool
- func (p *NotifyServiceUnreadCountArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceUnreadCountArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceUnreadCountArgs) String() string
- func (p *NotifyServiceUnreadCountArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceUnreadCountResult
- func (p *NotifyServiceUnreadCountResult) GetSuccess() (v *UnreadCountResp)
- func (p *NotifyServiceUnreadCountResult) InitDefault()
- func (p *NotifyServiceUnreadCountResult) IsSetSuccess() bool
- func (p *NotifyServiceUnreadCountResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceUnreadCountResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceUnreadCountResult) String() string
- func (p *NotifyServiceUnreadCountResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceUpdateArgs
- func (p *NotifyServiceUpdateArgs) GetReq() (v *UpdateReq)
- func (p *NotifyServiceUpdateArgs) InitDefault()
- func (p *NotifyServiceUpdateArgs) IsSetReq() bool
- func (p *NotifyServiceUpdateArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceUpdateArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyServiceUpdateArgs) String() string
- func (p *NotifyServiceUpdateArgs) Write(oprot thrift.TProtocol) (err error)
- type NotifyServiceUpdateResult
- func (p *NotifyServiceUpdateResult) GetSuccess() (v *UpdateResp)
- func (p *NotifyServiceUpdateResult) InitDefault()
- func (p *NotifyServiceUpdateResult) IsSetSuccess() bool
- func (p *NotifyServiceUpdateResult) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyServiceUpdateResult) ReadField0(iprot thrift.TProtocol) error
- func (p *NotifyServiceUpdateResult) String() string
- func (p *NotifyServiceUpdateResult) Write(oprot thrift.TProtocol) (err error)
- type NotifyType
- func (p *NotifyType) GetValue() (v string)
- func (p *NotifyType) InitDefault()
- func (p *NotifyType) Read(iprot thrift.TProtocol) (err error)
- func (p *NotifyType) ReadField1(iprot thrift.TProtocol) error
- func (p *NotifyType) String() string
- func (p *NotifyType) Write(oprot thrift.TProtocol) (err error)
- type UnreadCountData
- func (p *UnreadCountData) GetUnread() (v int64)
- func (p *UnreadCountData) InitDefault()
- func (p *UnreadCountData) Read(iprot thrift.TProtocol) (err error)
- func (p *UnreadCountData) ReadField1(iprot thrift.TProtocol) error
- func (p *UnreadCountData) String() string
- func (p *UnreadCountData) Write(oprot thrift.TProtocol) (err error)
- type UnreadCountResp
- func (p *UnreadCountResp) GetCode() (v int32)
- func (p *UnreadCountResp) GetData() (v *UnreadCountData)
- func (p *UnreadCountResp) GetMessage() (v string)
- func (p *UnreadCountResp) InitDefault()
- func (p *UnreadCountResp) IsSetData() bool
- func (p *UnreadCountResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UnreadCountResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UnreadCountResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UnreadCountResp) ReadField3(iprot thrift.TProtocol) error
- func (p *UnreadCountResp) String() string
- func (p *UnreadCountResp) Write(oprot thrift.TProtocol) (err error)
- type UpdateReq
- func (p *UpdateReq) GetContent() (v string)
- func (p *UpdateReq) GetEndAt() (v string)
- func (p *UpdateReq) GetID() (v int64)
- func (p *UpdateReq) GetLevel() (v string)
- func (p *UpdateReq) GetStartAt() (v string)
- func (p *UpdateReq) GetStatus() (v int32)
- func (p *UpdateReq) GetTitle() (v string)
- func (p *UpdateReq) GetType() (v string)
- func (p *UpdateReq) InitDefault()
- func (p *UpdateReq) IsSetContent() bool
- func (p *UpdateReq) IsSetEndAt() bool
- func (p *UpdateReq) IsSetLevel() bool
- func (p *UpdateReq) IsSetStartAt() bool
- func (p *UpdateReq) IsSetStatus() bool
- func (p *UpdateReq) IsSetTitle() bool
- func (p *UpdateReq) IsSetType() bool
- func (p *UpdateReq) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateReq) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField3(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField4(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField5(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField6(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField7(iprot thrift.TProtocol) error
- func (p *UpdateReq) ReadField8(iprot thrift.TProtocol) error
- func (p *UpdateReq) String() string
- func (p *UpdateReq) Write(oprot thrift.TProtocol) (err error)
- type UpdateResp
- func (p *UpdateResp) GetCode() (v int32)
- func (p *UpdateResp) GetMessage() (v string)
- func (p *UpdateResp) InitDefault()
- func (p *UpdateResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateResp) String() string
- func (p *UpdateResp) Write(oprot thrift.TProtocol) (err error)
- type UserNotifyItemData
- func (p *UserNotifyItemData) GetContent() (v string)
- func (p *UserNotifyItemData) GetCreatedAt() (v string)
- func (p *UserNotifyItemData) GetID() (v int64)
- func (p *UserNotifyItemData) GetIsRead() (v bool)
- func (p *UserNotifyItemData) GetLevel() (v string)
- func (p *UserNotifyItemData) GetReadAt() (v string)
- func (p *UserNotifyItemData) GetTitle() (v string)
- func (p *UserNotifyItemData) GetType() (v string)
- func (p *UserNotifyItemData) InitDefault()
- func (p *UserNotifyItemData) IsSetReadAt() bool
- func (p *UserNotifyItemData) Read(iprot thrift.TProtocol) (err error)
- func (p *UserNotifyItemData) ReadField1(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField2(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField3(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField4(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField5(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField6(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField7(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) ReadField8(iprot thrift.TProtocol) error
- func (p *UserNotifyItemData) String() string
- func (p *UserNotifyItemData) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
var ActiveReq_Type_DEFAULT string
var CreateReq_EndAt_DEFAULT string
var CreateReq_StartAt_DEFAULT string
var CreateReq_Status_DEFAULT int32
var ListReq_Level_DEFAULT string
var ListReq_PageSize_DEFAULT int32
var ListReq_Page_DEFAULT int32
var ListReq_Status_DEFAULT int32
var ListReq_Type_DEFAULT string
var MarkReadReq_All_DEFAULT bool
var MineReq_PageSize_DEFAULT int32
var MineReq_Page_DEFAULT int32
var NotifyItem_EndAt_DEFAULT string
var NotifyItem_StartAt_DEFAULT string
var UpdateReq_Content_DEFAULT string
var UpdateReq_EndAt_DEFAULT string
var UpdateReq_Level_DEFAULT string
var UpdateReq_StartAt_DEFAULT string
var UpdateReq_Status_DEFAULT int32
var UpdateReq_Title_DEFAULT string
var UpdateReq_Type_DEFAULT string
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) ReadField1 ¶
func (p *ActiveData) ReadField1(iprot thrift.TProtocol) error
func (*ActiveData) String ¶
func (p *ActiveData) String() string
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) InitDefault ¶
func (p *ActiveReq) InitDefault()
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) 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
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 (*CreateReq) GetStartAt ¶
func (*CreateReq) InitDefault ¶
func (p *CreateReq) InitDefault()
func (*CreateReq) IsSetEndAt ¶
func (*CreateReq) IsSetStartAt ¶
func (*CreateReq) IsSetStatus ¶
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) 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
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) InitDefault ¶
func (p *DeleteReq) InitDefault()
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) 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
type GetReq ¶
type GetReq struct {
ID int64 `thrift:"id,1,required" json:"id,required" path:"id,required"`
}
==================== 获取单条 ====================
var NotifyServiceGetArgs_Req_DEFAULT *GetReq
func (*GetReq) InitDefault ¶
func (p *GetReq) InitDefault()
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) GetData ¶
func (p *GetResp) GetData() (v *NotifyItem)
func (*GetResp) GetMessage ¶
func (*GetResp) InitDefault ¶
func (p *GetResp) InitDefault()
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) GetPageSize ¶
func (*ListData) InitDefault ¶
func (p *ListData) InitDefault()
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) GetPageSize ¶
func (*ListReq) InitDefault ¶
func (p *ListReq) InitDefault()
func (*ListReq) IsSetLevel ¶
func (*ListReq) IsSetPageSize ¶
func (*ListReq) IsSetStatus ¶
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) GetMessage ¶
func (*ListResp) InitDefault ¶
func (p *ListResp) InitDefault()
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
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
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
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) GetPageSize ¶ added in v0.9.0
func (*MineData) GetTotalPages ¶ added in v0.9.0
func (*MineData) InitDefault ¶ added in v0.9.0
func (p *MineData) InitDefault()
func (*MineData) ReadField1 ¶ added in v0.9.0
func (*MineData) ReadField2 ¶ added in v0.9.0
func (*MineData) ReadField3 ¶ added in v0.9.0
func (*MineData) ReadField4 ¶ added in v0.9.0
func (*MineData) ReadField5 ¶ added in v0.9.0
func (*MineData) ReadField6 ¶ added in v0.9.0
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) GetPageSize ¶ added in v0.9.0
func (*MineReq) InitDefault ¶ added in v0.9.0
func (p *MineReq) InitDefault()
func (*MineReq) IsSetPageSize ¶ added in v0.9.0
func (*MineReq) ReadField1 ¶ added in v0.9.0
func (*MineReq) ReadField2 ¶ added in v0.9.0
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) GetMessage ¶ added in v0.9.0
func (*MineResp) InitDefault ¶ added in v0.9.0
func (p *MineResp) InitDefault()
func (*MineResp) ReadField1 ¶ added in v0.9.0
func (*MineResp) ReadField2 ¶ added in v0.9.0
func (*MineResp) ReadField3 ¶ added in v0.9.0
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) 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
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) ReadField1 ¶
func (p *NotifyLevel) ReadField1(iprot thrift.TProtocol) error
func (*NotifyLevel) String ¶
func (p *NotifyLevel) String() string
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
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
type NotifyServiceClient ¶
type NotifyServiceClient struct {
// contains filtered or unexported fields
}
func NewNotifyServiceClient ¶
func NewNotifyServiceClient(c thrift.TClient) *NotifyServiceClient
func NewNotifyServiceClientFactory ¶
func NewNotifyServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *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) MarkRead ¶ added in v0.9.0
func (p *NotifyServiceClient) MarkRead(ctx context.Context, req *MarkReadReq) (r *MarkReadResp, 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
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
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
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
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
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
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
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
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
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
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
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
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 ¶
func (p *NotifyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
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 (p *NotifyServiceUnreadCountArgs) String() string
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 (p *NotifyServiceUnreadCountResult) Read(iprot thrift.TProtocol) (err error)
func (*NotifyServiceUnreadCountResult) ReadField0 ¶ added in v0.9.0
func (p *NotifyServiceUnreadCountResult) ReadField0(iprot thrift.TProtocol) error
func (*NotifyServiceUnreadCountResult) String ¶ added in v0.9.0
func (p *NotifyServiceUnreadCountResult) String() string
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
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
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) ReadField1 ¶
func (p *NotifyType) ReadField1(iprot thrift.TProtocol) error
func (*NotifyType) String ¶
func (p *NotifyType) String() string
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
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
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 (*UpdateReq) GetStartAt ¶
func (*UpdateReq) InitDefault ¶
func (p *UpdateReq) InitDefault()
func (*UpdateReq) IsSetContent ¶
func (*UpdateReq) IsSetEndAt ¶
func (*UpdateReq) IsSetLevel ¶
func (*UpdateReq) IsSetStartAt ¶
func (*UpdateReq) IsSetStatus ¶
func (*UpdateReq) IsSetTitle ¶
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) 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
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