Documentation ¶
Index ¶
- Constants
- type AddTask
- type Adv
- type CountData
- type CountTask
- type Page
- type QueryData
- type QueryTask
- type RmTask
- type Service
- func (S *Service) Add(app micro.IContext, task *AddTask) (*Adv, error)
- func (S *Service) Count(app micro.IContext, task *CountTask) (*CountData, 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) (*Adv, error)
- func (S *Service) Set(app micro.IContext, task *SetTask) (*Adv, 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 { Title string `json:"title" name:"title" title:"标题"` Channel string `json:"channel" name:"channel" title:"频道" index:"ASC"` Position int32 `json:"position" name:"position" title:"广告组位置"` Pic string `json:"pic" name:"pic" title:"图片"` Description string `json:"description" name:"description" title:"描述"` Link string `json:"link" name:"link" title:"跳转链接"` Linktype int32 `json:"linktype" name:"linktype" title:"跳转类型"` Sort int32 `json:"sort" name:"sort" title:"排序"` Starttime int64 `json:"starttime" name:"starttime" title:"开始时间"` Endtime int64 `json:"endtime" name:"endtime" title:"结束时间"` }
type Adv ¶
type Adv struct { db.Object Channel string `json:"channel" name:"channel" title:"频道" index:"ASC"` Title string `json:"title" name:"title" title:"标题" index:"ASC"` Position int32 `json:"position" name:"position" title:"广告组位置" index:"ASC"` Pic string `json:"pic" name:"pic" title:"图片" length:"128"` Description string `json:"description" name:"description" title:"描述" length:"512"` Link string `json:"link" name:"link" title:"跳转链接" length:"128"` Linktype int32 `json:"linktype" name:"linktype" title:"跳转类型"` Sort int32 `json:"sort" name:"sort" title:"排序"` Starttime int64 `json:"starttime" name:"starttime" title:"开始时间"` Endtime int64 `json:"endtime" name:"endtime" title:"结束时间"` Ctime int64 `json:"ctime" name:"ctime" title:"创建时间"` }
type CountTask ¶
type CountTask struct { Id interface{} `json:"id,omitempty" name:"id" title:"广告ID"` Channel interface{} `json:"channel,omitempty" name:"channel" title:"频道"` Stime interface{} `json:"stime,omitempty" name:"stime" title:"开始时间"` Etime interface{} `json:"etime,omitempty" name:"etime" title:"结束时间"` }
type QueryTask ¶
type QueryTask struct { Id interface{} `json:"id,omitempty" name:"id" title:"广告ID"` Channel interface{} `json:"channel,omitempty" name:"channel" title:"频道"` Stime interface{} `json:"stime,omitempty" name:"stime" title:"开始时间"` Etime interface{} `json:"etime,omitempty" name:"etime" title:"结束时间"` P interface{} `json:"p,omitempty" name:"p" title:"分页位置, 从1开始, 0 不处理分页"` N interface{} `json:"n,omitempty" name:"n" title:"分页大小,默认 20"` }
type RmTask ¶
type SetTask ¶
type SetTask struct { Id int64 `json:"id" name:"id" title:"广告ID"` Title string `json:"title" name:"title" title:"标题"` Channel string `json:"channel" name:"channel" title:"频道" index:"ASC"` Position int32 `json:"position" name:"position" title:"广告组位置"` Pic string `json:"pic" name:"pic" title:"图片"` Description string `json:"description" name:"description" title:"描述"` Link string `json:"link" name:"link" title:"跳转链接"` Linktype int32 `json:"linktype" name:"linktype" title:"跳转类型"` Sort int32 `json:"sort" name:"sort" title:"排序"` Starttime int64 `json:"starttime" name:"starttime" title:"开始时间"` Endtime int64 `json:"endtime" name:"endtime" title:"结束时间"` }
Click to show internal directories.
Click to hide internal directories.