Documentation ¶
Index ¶
- Constants
- func Prefix(app micro.IContext, prefix string, id int64) string
- type AddTask
- type CleanTask
- type CountTask
- type GetTask
- type Inbox
- type InboxCountData
- type InboxQueryData
- type NewInboxCountData
- type NewcountTask
- type Page
- type QueryTask
- type RmTask
- type Service
- func (S *Service) Add(app micro.IContext, task *AddTask) (*Inbox, error)
- func (S *Service) Clean(app micro.IContext, task *CleanTask) (interface{}, error)
- func (S *Service) Count(app micro.IContext, task *CountTask) (*InboxCountData, error)
- func (S *Service) Get(app micro.IContext, task *GetTask) (*Inbox, error)
- func (S *Service) GetName() string
- func (S *Service) GetTitle() string
- func (S *Service) Newcount(app micro.IContext, task *NewcountTask) (*NewInboxCountData, error)
- func (S *Service) Query(app micro.IContext, task *QueryTask) (*InboxQueryData, error)
- func (S *Service) Rm(app micro.IContext, task *RmTask) (*Inbox, error)
- func (S *Service) Set(app micro.IContext, task *SetTask) (*Inbox, error)
- func (S *Service) UserCount(app micro.IContext, task *UserCountTask) (*UserCountData, error)
- func (S *Service) UserQuery(app micro.IContext, task *UserQueryTask) (*UserQueryData, error)
- type SetTask
- type TopPage
- type User
- type UserCountData
- type UserCountTask
- type UserQueryData
- type UserQueryTask
Constants ¶
View Source
const ERROR_NOT_FOUND = 0x0001
View Source
const GroupBy_fuid = "fuid"
View Source
const GroupBy_mid = "mid"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddTask ¶
type AddTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Type int64 `json:"type" name:"type" title:"类型"` Mid int64 `json:"mid" name:"mid" title:"内容ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` Fuid int64 `json:"fuid" name:"fuid" title:"发布者ID"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` Ctime interface{} `json:"ctime,omitempty" name:"ctime" title:"创建时间"` }
type CleanTask ¶
type CleanTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型 type1 | type2 | type3"` Mid interface{} `json:"mid,omitempty" name:"mid" title:"内容ID"` Fuid interface{} `json:"fuid,omitempty" name:"fuid" title:"发布者ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` }
type CountTask ¶
type CountTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Fuid interface{} `json:"fuid,omitempty" name:"fuid" title:"发布者ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型 type1 | type2 | type3"` Mid interface{} `json:"mid,omitempty" name:"mid" title:"内容ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` TopId interface{} `json:"topId,omitempty" name:"topid" title:"顶部ID"` GroupBy interface{} `json:"groupBy,omitempty" name:"groupby" title:"分组"` }
type GetTask ¶
type Inbox ¶
type Inbox struct { db.Object Type int64 `json:"type" name:"type" title:"收件类型" index:"desc"` Uid int64 `json:"uid" name:"uid" title:"接受者ID" index:"desc"` Fuid int64 `json:"fuid" name:"fuid" title:"发布者ID" index:"desc"` Mid int64 `json:"mid" name:"mid" title:"内容ID" index:"desc"` Iid int64 `json:"iid" name:"iid" title:"内容项ID" index:"desc"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据" length:"-1"` Ctime int64 `json:"ctime" name:"ctime" title:"创建时间" index:"desc"` }
type InboxCountData ¶
type InboxCountData struct {
Total int32 `json:"total" name:"total" title:"总记录数"`
}
type InboxQueryData ¶
type NewInboxCountData ¶
type NewInboxCountData struct {
Total int32 `json:"total" name:"total" title:"总记录数"`
}
type NewcountTask ¶
type NewcountTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Fuid interface{} `json:"fuid,omitempty" name:"fuid" title:"发布者ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型 type1 | type2 | type3"` TopId int64 `json:"topId" name:"topid" title:"顶部ID"` GroupBy interface{} `json:"groupBy,omitempty" name:"groupby" title:"分组"` }
func (*NewcountTask) GetName ¶
func (T *NewcountTask) GetName() string
func (*NewcountTask) GetTitle ¶
func (T *NewcountTask) GetTitle() string
type QueryTask ¶
type QueryTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Fuid interface{} `json:"fuid,omitempty" name:"fuid" title:"发布者ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型 type1 | type2 | type3"` Mid interface{} `json:"mid,omitempty" name:"mid" title:"内容ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` TopId interface{} `json:"topId,omitempty" name:"topid" title:"顶部ID"` GroupBy interface{} `json:"groupBy,omitempty" name:"groupby" title:"分组"` }
type RmTask ¶
type Service ¶
type Service struct { }
func (*Service) Newcount ¶
func (S *Service) Newcount(app micro.IContext, task *NewcountTask) (*NewInboxCountData, error)
func (*Service) UserCount ¶
func (S *Service) UserCount(app micro.IContext, task *UserCountTask) (*UserCountData, error)
func (*Service) UserQuery ¶
func (S *Service) UserQuery(app micro.IContext, task *UserQueryTask) (*UserQueryData, error)
type SetTask ¶
type UserCountData ¶
type UserCountData struct {
Total int32 `json:"total" name:"total" title:"总记录数"`
}
type UserCountTask ¶
type UserCountTask struct { Type int64 `json:"type" name:"type" title:"类型"` Mid interface{} `json:"mid,omitempty" name:"mid" title:"内容ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` }
func (*UserCountTask) GetName ¶
func (T *UserCountTask) GetName() string
func (*UserCountTask) GetTitle ¶
func (T *UserCountTask) GetTitle() string
type UserQueryData ¶
type UserQueryTask ¶
type UserQueryTask struct { Type int64 `json:"type" name:"type" title:"类型"` Mid interface{} `json:"mid,omitempty" name:"mid" title:"内容ID"` Iid interface{} `json:"iid,omitempty" name:"iid" title:"内容项ID"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` }
func (*UserQueryTask) GetName ¶
func (T *UserQueryTask) GetName() string
func (*UserQueryTask) GetTitle ¶
func (T *UserQueryTask) GetTitle() string
Source Files ¶
- AddTask.go
- CleanTask.go
- CountTask.go
- GetTask.go
- GroupBy.go
- IMP_Add.go
- IMP_Clean.go
- IMP_Count.go
- IMP_Get.go
- IMP_Newcount.go
- IMP_Query.go
- IMP_Rm.go
- IMP_Set.go
- IMP_UserCount.go
- IMP_UserQuery.go
- Inbox.go
- InboxCountData.go
- InboxQueryData.go
- NewInboxCountData.go
- NewcountTask.go
- Page.go
- QueryTask.go
- RmTask.go
- Service.go
- SetTask.go
- TopPage.go
- User.go
- UserCountData.go
- UserCountTask.go
- UserQueryData.go
- UserQueryTask.go
- error.go
- table.go
Click to show internal directories.
Click to hide internal directories.