Documentation ¶
Index ¶
- Constants
- type AddTask
- type CountData
- type CountTask
- type GetTask
- type Media
- type QueryData
- type QueryDataPage
- type QueryTask
- type RmTask
- type Service
- func (S *Service) Add(app micro.IContext, task *AddTask) (*Media, error)
- func (S *Service) Count(app micro.IContext, task *CountTask) (*CountData, error)
- func (S *Service) Get(app micro.IContext, task *GetTask) (*Media, error)
- func (S *Service) GetName() string
- func (S *Service) GetTitle() string
- func (S *Service) Query(app micro.IContext, task *QueryTask) (*QueryData, error)
- func (S *Service) Rm(app micro.IContext, task *RmTask) (*Media, error)
- func (S *Service) Set(app micro.IContext, task *SetTask) (*Media, error)
- type SetTask
Constants ¶
View Source
const ERROR_NOT_FOUND = 0x0001
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTask ¶
type AddTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型"` Title interface{} `json:"title,omitempty" name:"title" title:"标题"` Keyword interface{} `json:"keyword,omitempty" name:"keyword" title:"关键字"` Path interface{} `json:"path,omitempty" name:"path" title:"存储路径"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
type CountTask ¶
type CountTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` Q interface{} `json:"q,omitempty" name:"q" title:"搜索关键字"` Prefix interface{} `json:"prefix,omitempty" name:"prefix" title:"路径前缀"` Type interface{} `json:"type,omitempty" name:"type" title:"类型,多个逗号分割"` }
type GetTask ¶
type GetTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Id int64 `json:"id" name:"id" title:"媒体ID"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` }
type Media ¶
type Media struct { db.Object Uid int64 `json:"uid" name:"uid" title:"用户ID" index:"ASC"` Type string `json:"type" name:"type" title:"类型" length:"32" index:"ASC"` Title string `json:"title" name:"title" title:"标题" length:"2048"` Keyword string `json:"keyword" name:"keyword" title:"关键字" length:"4096"` Path string `json:"path" name:"path" title:"存储路径" length:"2048"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据" length:"-1"` Ctime int64 `json:"ctime" name:"ctime" title:"创建时间"` }
type QueryData ¶
type QueryData struct { Items []*Media `json:"items,omitempty" name:"items" title:"媒体"` Page *QueryDataPage `json:"page,omitempty" name:"page" title:"分页"` }
type QueryDataPage ¶
type QueryTask ¶
type QueryTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` Q interface{} `json:"q,omitempty" name:"q" title:"搜索关键字"` Prefix interface{} `json:"prefix,omitempty" name:"prefix" title:"路径前缀"` Type interface{} `json:"type,omitempty" name:"type" title:"类型,多个逗号分割"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` }
type RmTask ¶
type RmTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Id int64 `json:"id" name:"id" title:"媒体ID"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` }
type SetTask ¶
type SetTask struct { Name interface{} `json:"name,omitempty" name:"name" title:"存储表名"` Region interface{} `json:"region,omitempty" name:"region" title:"存储分区"` Id int64 `json:"id" name:"id" title:"媒体ID"` Uid interface{} `json:"uid,omitempty" name:"uid" title:"用户ID"` Type interface{} `json:"type,omitempty" name:"type" title:"类型"` Title interface{} `json:"title,omitempty" name:"title" title:"标题"` Keyword interface{} `json:"keyword,omitempty" name:"keyword" title:"关键字"` Path interface{} `json:"path,omitempty" name:"path" title:"存储路径"` Options interface{} `json:"options,omitempty" name:"options" title:"其他数据 JSON 叠加数据"` }
Click to show internal directories.
Click to hide internal directories.