Documentation ¶
Index ¶
- Constants
- func Prefix(app micro.IContext, prefix string, uid int64) string
- type CleanByTypesTask
- type CleanTask
- type CountData
- type CountTask
- type CreateTask
- type GetTask
- type NewCountByTypesData
- type NewCountByTypesItem
- type NewcountByTypesTask
- type NewcountTask
- type Notice
- type QueryData
- type QueryDataPage
- type QueryTask
- type RmTask
- type Service
- func (S *Service) Clean(app micro.IContext, task *CleanTask) (interface{}, error)
- func (S *Service) CleanByTypes(app micro.IContext, task *CleanByTypesTask) (interface{}, error)
- func (S *Service) Count(app micro.IContext, task *CountTask) (*CountData, error)
- func (S *Service) Create(app micro.IContext, task *CreateTask) (*Notice, error)
- func (S *Service) Get(app micro.IContext, task *GetTask) (*Notice, error)
- func (S *Service) GetName() string
- func (S *Service) GetTitle() string
- func (S *Service) Newcount(app micro.IContext, task *NewcountTask) (*CountData, error)
- func (S *Service) NewcountByTypes(app micro.IContext, task *NewcountByTypesTask) (*NewCountByTypesData, error)
- func (S *Service) Query(app micro.IContext, task *QueryTask) (*QueryData, error)
- func (S *Service) Rm(app micro.IContext, task *RmTask) (*Notice, error)
- func (S *Service) Set(app micro.IContext, task *SetTask) (*Notice, error)
- type SetTask
- type TopPage
Constants ¶
View Source
const ERROR_NOT_FOUND = 0x0001
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanByTypesTask ¶
type CleanByTypesTask struct { Type string `json:"type" name:"type" title:"类型, 多个逗号分割"` Fid int64 `json:"fid" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid int64 `json:"iid" name:"iid" title:"消息来源项ID , 多个逗号分割"` }
func (*CleanByTypesTask) GetName ¶
func (T *CleanByTypesTask) GetName() string
func (*CleanByTypesTask) GetTitle ¶
func (T *CleanByTypesTask) GetTitle() string
type CleanTask ¶
type CleanTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型, 多个逗号分割"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID , 多个逗号分割"` }
type CountTask ¶
type CountTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Ids interface{} `json:"ids,omitempty" name:"ids" title:"ID,多个逗号分割"` Type interface{} `json:"type,omitempty" name:"type" title:"类型, 多个逗号分割"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID , 多个逗号分割"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` TopId interface{} `json:"topId,omitempty" name:"topid" title:"顶部ID"` }
type CreateTask ¶
type CreateTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"通知类型 默认 0"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID 默认 0"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID 默认 0"` Body string `json:"body" name:"body" title:"通知内容"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
func (*CreateTask) GetName ¶
func (T *CreateTask) GetName() string
func (*CreateTask) GetTitle ¶
func (T *CreateTask) GetTitle() string
type GetTask ¶
type NewCountByTypesData ¶
type NewCountByTypesData struct {
Items []*NewCountByTypesItem `json:"items,omitempty" name:"items" title:""`
}
type NewCountByTypesItem ¶
type NewcountByTypesTask ¶
type NewcountByTypesTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Ids interface{} `json:"ids,omitempty" name:"ids" title:"ID,多个逗号分割"` Type interface{} `json:"type,omitempty" name:"type" title:"类型, 多个逗号分割"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID , 多个逗号分割"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` TopId int64 `json:"topId" name:"topid" title:"顶部ID"` }
func (*NewcountByTypesTask) GetName ¶
func (T *NewcountByTypesTask) GetName() string
func (*NewcountByTypesTask) GetTitle ¶
func (T *NewcountByTypesTask) GetTitle() string
type NewcountTask ¶
type NewcountTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Ids interface{} `json:"ids,omitempty" name:"ids" title:"ID,多个逗号分割"` Type interface{} `json:"type,omitempty" name:"type" title:"类型, 多个逗号分割"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID , 多个逗号分割"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` TopId int64 `json:"topId" name:"topid" title:"顶部ID"` }
func (*NewcountTask) GetName ¶
func (T *NewcountTask) GetName() string
func (*NewcountTask) GetTitle ¶
func (T *NewcountTask) GetTitle() string
type Notice ¶
type Notice struct { db.Object Type int32 `json:"type" name:"type" title:"通知类型" index:"ASC"` Fid int64 `json:"fid" name:"fid" title:"消息来源ID" index:"ASC"` Iid int64 `json:"iid" name:"iid" title:"消息来源项ID" index:"ASC"` Uid int64 `json:"uid" name:"uid" title:"用户ID" index:"ASC"` Body string `json:"body" name:"body" title:"通知内容" length:"-1"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据" length:"-1"` Ctime int64 `json:"ctime" name:"ctime" title:"创建时间"` }
type QueryDataPage ¶
type QueryTask ¶
type QueryTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Ids interface{} `json:"ids,omitempty" name:"ids" title:"ID,多个逗号分割"` Type interface{} `json:"type,omitempty" name:"type" title:"类型, 多个逗号分割"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID , 多个逗号分割"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID , 多个逗号分割"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` TopId interface{} `json:"topId,omitempty" name:"topid" title:"顶部ID"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` }
type RmTask ¶
type Service ¶
type Service struct { }
func (*Service) CleanByTypes ¶
func (S *Service) CleanByTypes(app micro.IContext, task *CleanByTypesTask) (interface{}, error)
func (*Service) NewcountByTypes ¶
func (S *Service) NewcountByTypes(app micro.IContext, task *NewcountByTypesTask) (*NewCountByTypesData, error)
type SetTask ¶
type SetTask struct { Id int64 `json:"id" name:"id" title:"分组ID"` Uid int64 `json:"uid" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"通知类型"` Fid interface{} `json:"fid,omitempty" name:"fid" title:"消息来源ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"消息来源项ID"` Body interface{} `json:"body,omitempty" name:"body" title:"通知内容"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
Source Files ¶
- CleanByTypesTask.go
- CleanTask.go
- CountData.go
- CountTask.go
- CreateTask.go
- GetTask.go
- IMP_Clean.go
- IMP_CleanByTypes.go
- IMP_Count.go
- IMP_Create.go
- IMP_Get.go
- IMP_Newcount.go
- IMP_NewcountByTypes.go
- IMP_Query.go
- IMP_Rm.go
- IMP_Set.go
- NewCountByTypesData.go
- NewCountByTypesItem.go
- NewcountByTypesTask.go
- NewcountTask.go
- Notice.go
- QueryData.go
- QueryDataPage.go
- QueryTask.go
- RmTask.go
- Service.go
- SetTask.go
- TopPage.go
- error.go
- table.go
Click to show internal directories.
Click to hide internal directories.