Documentation ¶
Index ¶
- Variables
- type AddGoodsRes
- type DelLiveRoomRes
- type Goods
- type GoodsAuditRes
- type GoodsInfo
- type GoodsInfoRequest
- type GoodsInfoRes
- type GoodsListRes
- type GoodsWare
- type GoodsWare2
- type GoodswarehouseRes
- type LiveAnchor
- type LiveGoodsMgr
- func (this *LiveGoodsMgr) GetGoodswarehouse(goods_ids []int) (res GoodswarehouseRes, err error)
- func (this *LiveGoodsMgr) Getapproved(offset int, limit int, status int) (res GoodsListRes, err error)
- func (this *LiveGoodsMgr) GoodsAdd(req GoodsInfoRequest) (res GoodsInfoRes, err error)
- func (this *LiveGoodsMgr) GoodsAudit(goodsId int) (res util.CommonError, err error)
- func (this *LiveGoodsMgr) GoodsDelete(goodsId int) (res util.CommonError, err error)
- func (this *LiveGoodsMgr) GoodsResetaudit(audit int, goodsId int) (res util.CommonError, err error)
- func (this *LiveGoodsMgr) GoodsUpdate(goodsInfo GoodsInfo) (res util.CommonError, err error)
- type LiveReplay
- type LiveRoom
- func (this *LiveRoom) AddGoods(ids []int, room_id int) (res AddGoodsRes, err error)
- func (this *LiveRoom) CreateLiveRoom(room Room) (res RoomRes, err error)
- func (this *LiveRoom) DelLiveRoom(id int64) (res DelLiveRoomRes, err error)
- func (this *LiveRoom) GetLiveinfoList(start, limit int) (res RoomInfoRes, err error)
- func (this *LiveRoom) GetLiveinfoReplayList(start, limit int, room_id int) (res RoomReplayRes, err error)
- type RoleList
- type RoleListReq
- type RoleListRes
- type RoleReq
- type RoleRes
- type Room
- type RoomInfo
- type RoomInfoRes
- type RoomReplayRes
- type RoomRes
Constants ¶
This section is empty.
Variables ¶
View Source
var ROLE_ERR_MSG = map[int]string{
400001: "微信号不合规",
400002: "微信号需要实名认证",
400003: "添加角色达到上限",
400004: "重复添加角色",
400005: " 主播角色删除失败,该主播存在未开播的直播间",
}
Functions ¶
This section is empty.
Types ¶
type AddGoodsRes ¶
type AddGoodsRes struct {
util.CommonError
}
type DelLiveRoomRes ¶
type DelLiveRoomRes struct {
util.CommonError
}
type GoodsAuditRes ¶
type GoodsAuditRes struct { util.CommonError AuditId int `json:"auditId"` }
type GoodsInfoRequest ¶
type GoodsInfoRequest struct {
GoodsInfo GoodsInfo `json:"goodsInfo"`
}
type GoodsInfoRes ¶
type GoodsInfoRes struct { util.CommonError GoodsId string `json:"goodsId"` AuditId int `json:"auditId"` }
type GoodsListRes ¶
type GoodsListRes struct { util.CommonError Goods []GoodsWare2 `json:"goods"` Total int `json:"total"` }
type GoodsWare ¶
type GoodsWare struct { CoverImgUrl string `json:"cover_img_url"` Name string `json:"name"` PriceType int `json:"priceType"` Price float64 `json:"price"` Price2 float64 `json:"price2"` Url string `json:"url"` GoodsId int `json:"goods_id"` AuditStatus int `json:"audit_status"` Third_party_tag int `json:"third_party_tag"` }
type GoodsWare2 ¶
type GoodsWare2 struct { CoverImgUrl string `json:"coverImgUrl"` Name string `json:"name"` PriceType int `json:"priceType"` Price float64 `json:"price"` Price2 float64 `json:"price2"` Url string `json:"url"` GoodsId int `json:"goods_id"` Third_party_tag int `json:"thirdPartyTag"` // contains filtered or unexported fields }
type GoodswarehouseRes ¶
type GoodswarehouseRes struct { util.CommonError Goods []GoodsWare `json:"goods"` Total int `json:"total"` }
type LiveAnchor ¶
主播管理
func NewLiveAnchor ¶
func NewLiveAnchor(context *context.Context) *LiveAnchor
func (*LiveAnchor) QueryRoleList ¶
func (this *LiveAnchor) QueryRoleList(req *RoleListReq) (*RoleListRes, error)
type LiveGoodsMgr ¶
直播间商品管理
func (*LiveGoodsMgr) GetGoodswarehouse ¶
func (this *LiveGoodsMgr) GetGoodswarehouse(goods_ids []int) (res GoodswarehouseRes, err error)
调用额度:1000次/一天
func (*LiveGoodsMgr) Getapproved ¶
func (this *LiveGoodsMgr) Getapproved(offset int, limit int, status int) (res GoodsListRes, err error)
调用额度:10000次/一天
func (*LiveGoodsMgr) GoodsAdd ¶
func (this *LiveGoodsMgr) GoodsAdd(req GoodsInfoRequest) (res GoodsInfoRes, err error)
调用频率 调用额度:500次/一天
func (*LiveGoodsMgr) GoodsAudit ¶
func (this *LiveGoodsMgr) GoodsAudit(goodsId int) (res util.CommonError, err error)
调用频率 调用额度:500次/一天
func (*LiveGoodsMgr) GoodsDelete ¶
func (this *LiveGoodsMgr) GoodsDelete(goodsId int) (res util.CommonError, err error)
调用频率 调用额度:500次/一天
func (*LiveGoodsMgr) GoodsResetaudit ¶
func (this *LiveGoodsMgr) GoodsResetaudit(audit int, goodsId int) (res util.CommonError, err error)
调用频率 调用额度:500次/一天
func (*LiveGoodsMgr) GoodsUpdate ¶
func (this *LiveGoodsMgr) GoodsUpdate(goodsInfo GoodsInfo) (res util.CommonError, err error)
调用额度:1000次/一天
type LiveReplay ¶
type LiveRoom ¶
直播间管理
func (*LiveRoom) AddGoods ¶
func (this *LiveRoom) AddGoods(ids []int, room_id int) (res AddGoodsRes, err error)
func (*LiveRoom) CreateLiveRoom ¶
请求方式 POST
func (*LiveRoom) DelLiveRoom ¶
func (this *LiveRoom) DelLiveRoom(id int64) (res DelLiveRoomRes, err error)
func (*LiveRoom) GetLiveinfoList ¶
func (this *LiveRoom) GetLiveinfoList(start, limit int) (res RoomInfoRes, err error)
请求方式 POST
func (*LiveRoom) GetLiveinfoReplayList ¶
func (this *LiveRoom) GetLiveinfoReplayList(start, limit int, room_id int) (res RoomReplayRes, err error)
type RoleListReq ¶
type RoleListRes ¶
type Room ¶
type Room struct { Name string `json:"name"` CoverImg string `json:"coverImg"` FeedsImg string `json:"feedsImg"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` AnchorName string `json:"anchorName"` AnchorWechat string `json:"anchorWechat"` SubAnchorWechat string `json:"subAnchorWechat"` Type int `json:"type"` ScreenType int `json:"screenType"` CloseLike int `json:"closeLike"` CloseGoods int `json:"closeGoods"` CloseComment int `json:"closeComment"` CloseReplay int `json:"closeReplay"` CloseKf int `json:"closeKf"` }
type RoomInfo ¶
type RoomInfo struct { Name string `json:"name"` Roomid int `json:"roomid"` CoverImg string `json:"cover_img"` StartTime int64 `json:"start_time"` EndTime int64 `json:"end_time"` AnchorName string `json:"anchor_name"` Goods []Goods `json:"goods"` Total int `json:"total"` Live_status int `json:"live_status"` }
type RoomInfoRes ¶
type RoomInfoRes struct { util.CommonError RoomInfo []RoomInfo `json:"room_info"` }
type RoomReplayRes ¶
type RoomReplayRes struct { util.CommonError LiveReplay []LiveReplay `json:"live_replay"` Total int `json:"total"` }
Click to show internal directories.
Click to hide internal directories.