Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brand ¶
type Brand struct { Scope ref.Scope `bson:"scope" json:"scope"` Lead *ref.Lead `bson:"lead" json:"lead"` ID ID `bson:"id" json:"id"` Title string `bson:"title" json:"title"` Info more.More `json:"info"` Media media.More `bson:"media" json:"media"` Ctrl *ctrl.Ctrl `bson:"ctrl" json:"ctrl"` BrithAt time.Time `bson:"brith_at" json:"brith_at"` ModifiedAt time.Time `bson:"modified_at"json:"modified_at"` }
type GetRequest ¶
type LoadRequest ¶
type LoadRequest struct { Scope ref.Scope `bson:"scope" json:"scope"` //[*]SCOPE LeadArray []ref.Lead `bson:"lead_array" json:"lead_array"` //Lead info BrandIDArray []ID `bson:"id_array" json:"id_array"` //Brand ID info Available *ctrl.BooleanSet `bson:"available" json:"available"` //Available CtrlTag []string `bson:"ctrl_tag" json:"ctrl_tag"` //Ctrl Tag Keyword *ctrl.StringSet `bson:"keyword" json:"keyword"` //Key Word Page *load.Page `bson:"page" json:"page"` //Page }
type RegisterRequest ¶
type RegisterRequest struct { Scope ref.Scope `bson:"scope" json:"scope"` //[*]所属业务域 Lead *ref.Lead `bson:"lead" json:"lead"` Title string `bson:"title" json:"title"` //[*]名称 Info *struct { Alias string `bson:"alias" json:"alias"` //[-]品牌别名 Code string `bson:"code" json:"code"` //[-]品牌编码 More more.Array `bson:"more" json:"more"` //品牌主介绍 } `json:"info"` //展示信息 Media *struct { Logo *media.Media `bson:"logo" json:"logo"` //LOGO Primary *media.Media `bson:"primary"json:"primary"` //主图视频 More media.Array `bson:"more" json:"more"` //更多图视频 } `bson:"media" json:"media"` //图文视频 Ctrl *ctrl.Ctrl `bson:"ctrl" json:"ctrl"` //控制信息 }
type RemoveRequest ¶
type RemoveRequest = GetRequest
type Service ¶
type Service interface { Register(permit *ww.Permit, req RegisterRequest) (ID, *errors.Error) Get(permit *ww.Permit, req GetRequest) (*Brand, *errors.Error) Set(permit *ww.Permit, req SetRequest) (ID, *errors.Error) Remove(permit *ww.Permit, req RemoveRequest) (ID, *errors.Error) Load(permit *ww.Permit, req LoadRequest) ([]*Brand, *load.Paging, *errors.Error) }
type SetRequest ¶
type SetRequest struct { Scope ref.Scope `json:"scope"` //[*]所属业务域 BrandID string `json:"brand_id"` //[*]品牌ID Available *ctrl.BooleanSet `json:"available,omitempty"` //[-]是否可用设置 MediaSet *media.Set `json:"media_set,omitempty"` //[-]MEDIA SET InfoSet *more.Set `json:"info_set,omitempty"` //[-]INFO SET CtrlSet *ctrl.Set `json:"ctrl_set,omitempty"` //[-]CTRL SET }
Click to show internal directories.
Click to hide internal directories.