Documentation ¶
Index ¶
- Constants
- func Prefix(app micro.IContext, prefix string, id int64) string
- type Article
- type GetTask
- type Outbox
- type OutboxCountData
- type OutboxCountTask
- type OutboxCreateTask
- type OutboxGetTask
- type OutboxQueryData
- type OutboxQueryTask
- type OutboxRmTask
- type OutboxSendTask
- type OutboxSetTask
- type OutboxUpTask
- type Page
- type Service
- func (S *Service) Get(app micro.IContext, task *GetTask) (*Article, error)
- func (S *Service) GetName() string
- func (S *Service) GetTitle() string
- func (S *Service) OutboxCount(app micro.IContext, task *OutboxCountTask) (*OutboxCountData, error)
- func (S *Service) OutboxCreate(app micro.IContext, task *OutboxCreateTask) (*Outbox, error)
- func (S *Service) OutboxGet(app micro.IContext, task *OutboxGetTask) (*Outbox, error)
- func (S *Service) OutboxQuery(app micro.IContext, task *OutboxQueryTask) (*OutboxQueryData, error)
- func (S *Service) OutboxRm(app micro.IContext, task *OutboxRmTask) (*Outbox, error)
- func (S *Service) OutboxSend(app micro.IContext, task *OutboxSendTask) (*Outbox, error)
- func (S *Service) OutboxSet(app micro.IContext, task *OutboxSetTask) (*Outbox, error)
- func (S *Service) Set(app micro.IContext, task *SetTask) (*Article, error)
- func (S *Service) TrashAdd(app micro.IContext, task *TrashAddTask) (*Article, error)
- func (S *Service) TrashRm(app micro.IContext, task *TrashRmTask) (*Article, error)
- type SetTask
- type TrashAddTask
- type TrashRmTask
Constants ¶
View Source
const ArticleState_None = 0
View Source
const ArticleState_Recycle = 1
View Source
const ERROR_HAS_SENDED = 0x0002
View Source
const ERROR_NOT_FOUND = 0x0001
View Source
const OutboxStatus_None = 0
View Source
const OutboxStatus_Sended = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Article ¶
type Article struct { db.Object Uid int64 `json:"uid" name:"uid" title:"发布者ID"` 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:"创建时间"` State int32 `json:"state" name:"state" title:"状态" index:"ASC"` }
type Outbox ¶
type Outbox struct { db.Object Uid int64 `json:"uid" name:"uid" title:"发布者ID"` Mid int64 `json:"mid" name:"mid" title:"动态ID"` 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 OutboxCountData ¶
type OutboxCountData struct {
Total int32 `json:"total" name:"total" title:"总记录数"`
}
type OutboxCountTask ¶
type OutboxCountTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` IsPublished interface{} `json:"isPublished,omitempty" name:"ispublished" title:"是否发布"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` }
func (*OutboxCountTask) GetName ¶
func (T *OutboxCountTask) GetName() string
func (*OutboxCountTask) GetTitle ¶
func (T *OutboxCountTask) GetTitle() string
type OutboxCreateTask ¶
type OutboxCreateTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` Body string `json:"body" name:"body" title:"内容"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
func (*OutboxCreateTask) GetName ¶
func (T *OutboxCreateTask) GetName() string
func (*OutboxCreateTask) GetTitle ¶
func (T *OutboxCreateTask) GetTitle() string
type OutboxGetTask ¶
type OutboxGetTask struct { Id int64 `json:"id" name:"id" title:"草稿ID"` Uid int64 `json:"uid" name:"uid" title:"用户ID"` }
func (*OutboxGetTask) GetName ¶
func (T *OutboxGetTask) GetName() string
func (*OutboxGetTask) GetTitle ¶
func (T *OutboxGetTask) GetTitle() string
type OutboxQueryData ¶
type OutboxQueryTask ¶
type OutboxQueryTask struct { Uid int64 `json:"uid" name:"uid" title:"用户ID"` IsPublished interface{} `json:"isPublished,omitempty" name:"ispublished" title:"是否发布"` Q interface{} `json:"q,omitempty" name:"q" title:"模糊匹配关键字"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` }
func (*OutboxQueryTask) GetName ¶
func (T *OutboxQueryTask) GetName() string
func (*OutboxQueryTask) GetTitle ¶
func (T *OutboxQueryTask) GetTitle() string
type OutboxRmTask ¶
type OutboxRmTask struct { Id int64 `json:"id" name:"id" title:"草稿ID"` Uid int64 `json:"uid" name:"uid" title:"用户ID"` }
func (*OutboxRmTask) GetName ¶
func (T *OutboxRmTask) GetName() string
func (*OutboxRmTask) GetTitle ¶
func (T *OutboxRmTask) GetTitle() string
type OutboxSendTask ¶
type OutboxSendTask struct { Id int64 `json:"id" name:"id" title:"草稿ID"` Uid int64 `json:"uid" name:"uid" title:"用户ID"` }
func (*OutboxSendTask) GetName ¶
func (T *OutboxSendTask) GetName() string
func (*OutboxSendTask) GetTitle ¶
func (T *OutboxSendTask) GetTitle() string
type OutboxSetTask ¶
type OutboxSetTask struct { Id int64 `json:"id" name:"id" title:"草稿ID"` Uid int64 `json:"uid" name:"uid" title:"用户ID"` Body interface{} `json:"body,omitempty" name:"body" title:"内容"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
func (*OutboxSetTask) GetName ¶
func (T *OutboxSetTask) GetName() string
func (*OutboxSetTask) GetTitle ¶
func (T *OutboxSetTask) GetTitle() string
type OutboxUpTask ¶
type OutboxUpTask struct { Id int64 `json:"id,omitempty" title:"草稿ID"` Uid int64 `json:"uid,omitempty" title:"用户ID"` Body interface{} `json:"body,omitempty" title:"内容"` Options interface{} `json:"options,omitempty" title:"其他数据 JSON 叠加数据"` }
func (*OutboxUpTask) GetName ¶
func (T *OutboxUpTask) GetName() string
func (*OutboxUpTask) GetTitle ¶
func (T *OutboxUpTask) GetTitle() string
type Service ¶
type Service struct { }
func (*Service) OutboxCount ¶
func (S *Service) OutboxCount(app micro.IContext, task *OutboxCountTask) (*OutboxCountData, error)
func (*Service) OutboxCreate ¶
func (*Service) OutboxQuery ¶
func (S *Service) OutboxQuery(app micro.IContext, task *OutboxQueryTask) (*OutboxQueryData, error)
func (*Service) OutboxSend ¶
type SetTask ¶
type SetTask struct { Id int64 `json:"id" name:"id" title:"动态ID"` State interface{} `json:"state,omitempty" name:"state" title:"状态 多个逗号分割"` Body interface{} `json:"body,omitempty" name:"body" title:"内容"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` Ctime interface{} `json:"ctime,omitempty" name:"ctime" title:"发布时间"` }
type TrashAddTask ¶
type TrashAddTask struct {
Id int64 `json:"id" name:"id" title:"动态ID"`
}
func (*TrashAddTask) GetName ¶
func (T *TrashAddTask) GetName() string
func (*TrashAddTask) GetTitle ¶
func (T *TrashAddTask) GetTitle() string
type TrashRmTask ¶
type TrashRmTask struct {
Id int64 `json:"id" name:"id" title:"动态ID"`
}
func (*TrashRmTask) GetName ¶
func (T *TrashRmTask) GetName() string
func (*TrashRmTask) GetTitle ¶
func (T *TrashRmTask) GetTitle() string
Source Files ¶
- Article.go
- ArticleState.go
- GetTask.go
- IMP_Get.go
- IMP_OutboxCount.go
- IMP_OutboxCreate.go
- IMP_OutboxGet.go
- IMP_OutboxQuery.go
- IMP_OutboxRm.go
- IMP_OutboxSend.go
- IMP_OutboxSet.go
- IMP_Set.go
- IMP_TrashAdd.go
- IMP_TrashRm.go
- Outbox.go
- OutboxCountData.go
- OutboxCountTask.go
- OutboxCreateTask.go
- OutboxGetTask.go
- OutboxQueryData.go
- OutboxQueryTask.go
- OutboxRmTask.go
- OutboxSendTask.go
- OutboxSetTask.go
- OutboxStatus.go
- OutboxUpTask.go
- Page.go
- Service.go
- SetTask.go
- TrashAddTask.go
- TrashRmTask.go
- error.go
- table.go
Click to show internal directories.
Click to hide internal directories.