model

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCodeItem

type ActionCodeItem struct {
	Path          string            // 地址
	ActionCodeMap map[string]string // 操作码MAP
}

ActionCodeItem 页面操作权限码属性

type AdminIdAndDepartIdItem

type AdminIdAndDepartIdItem struct {
	AdminId  uint `json:"admin_id" dc:"管理员ID"`
	DepartId uint `json:"depart_id" dc:"部门ID"`
}

AdminIdAndDepartIdItem 管理员ID或部门ID属性

type AdminInviteAddInput

type AdminInviteAddInput struct {
	IsSuperManage enums.AdminIsSuperManage `json:"is_super_manage" dc:"是否超管"`
	DepartId      []uint                   `json:"depart_id" dc:"部门ID"`
}

AdminInviteAddInput 添加管理员邀请请求参数

type AdminInviteAddOutput

type AdminInviteAddOutput struct {
	Token string `json:"token" dc:"授权Token"`
}

AdminInviteAddOutput 添加管理员邀请输出结果

type AdminInviteDetailItem

AdminInviteDetailItem 管理员邀请详情属性

type AdminInviteGetListInput

type AdminInviteGetListInput struct {
	CommonPaginationItem
	Status enums.AdminInviteStatus `json:"status" dc:"状态"`
}

AdminInviteGetListInput 管理员邀请获取列表请求参数

type AdminInviteGetListOutput

type AdminInviteGetListOutput struct {
	CommonResponseItem
	Rows []AdminInviteListItem `json:"rows" dc:"数据列表"`
}

AdminInviteGetListOutput 管理员邀请获取列表响应输出

type AdminInviteItem

type AdminInviteItem struct {
	Id    uint   `json:"id" dc:"邀请ID"`
	Token string `json:"token" dc:"邀请Token"`
}

AdminInviteItem 管理员邀请熟悉

type AdminInviteListItem

type AdminInviteListItem struct {
	AdminInviteItem
	AdminInviteManageItem
	AdminInviteValidItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

AdminInviteListItem 管理员邀请列表属性

type AdminInviteManageItem

type AdminInviteManageItem struct {
	AdminId    uint   `json:"admin_id" dc:"管理员ID"`
	ManageName string `json:"manage_name" dc:"管理员"`
	RefreshNum uint   `json:"refresh_num" dc:"刷新时间"`
}

AdminInviteManageItem 管理员邀请管理属性

type AdminInviteUserItem

type AdminInviteUserItem struct {
	Uid           uint   `json:"uid" dc:"用户ID"`
	DepartId      string `json:"depart_id" dc:"部门ID"`
	IsSuperManage uint   `json:"is_super_manage" dc:"是否超管"`
}

AdminInviteUserItem 管理员邀请用户信息

type AdminInviteUserValidItem

type AdminInviteUserValidItem struct {
	AdminInviteValidItem
	AdminInviteUserItem
}

AdminInviteUserValidItem 管理员邀请用户有效属性

type AdminInviteValidItem

type AdminInviteValidItem struct {
	Expired string `json:"expired" dc:"到期时间"`
	Status  uint   `json:"status" dc:"邀请状态"`
}

AdminInviteValidItem 管理员邀请效期属性

type ArticleAttrItem

type ArticleAttrItem struct {
	Description string `json:"description" dc:"文章摘要"`
	Keywords    string `json:"keywords" dc:"关键词"`
}

ArticleAttrItem 文章属性

type ArticleBasicItem

type ArticleBasicItem struct {
	Id         uint   `json:"id" dc:"文章ID"`
	Name       string `json:"name" dc:"文章名"`
	AbbrevName string `json:"abbrev_name" dc:"文章名缩写"`
	Cid        uint   `json:"cid" dc:"分类ID"`
	AssocAlias string `json:"assoc_alias" dc:"关联别名,例如注册协议"`
}

ArticleBasicItem 文章基础属性

type ArticleCategoryAttrItem

type ArticleCategoryAttrItem struct {
	Description string `json:"description" dc:"类目详情"`
}

ArticleCategoryAttrItem 文章类目属性

type ArticleCategoryBasicItem

type ArticleCategoryBasicItem struct {
	Id   uint   `json:"id" dc:"类目ID"`
	Name string `json:"name" dc:"类目名"`
	Pid  uint   `json:"pid" dc:"父级ID"`
}

ArticleCategoryBasicItem 文章类目基础属性

type ArticleCategoryDetailItem

ArticleCategoryDetailItem 获取文章类目详情属性

type ArticleCategoryListItem

type ArticleCategoryListItem struct {
	ArticleCategoryBasicItem
	ArticleCategoryStatusItem
}

ArticleCategoryListItem 获取文章类目列表属性

type ArticleCategoryStatusItem

type ArticleCategoryStatusItem struct {
	Status uint `json:"status" dc:"类目状态"`
	IsShow uint `json:"is_show" dc:"是否显示"`
}

ArticleCategoryStatusItem 文章类目状态属性

type ArticleContentItem

type ArticleContentItem struct {
	Content string `json:"content" dc:"文章内容"`
}

ArticleContentItem 文章内容属性

type ArticleDetailFmtItem

type ArticleDetailFmtItem struct {
	ArticleStatusShowItem
	ArticleFmtItem
}

ArticleDetailFmtItem 文章详情格式化

type ArticleDetailItem

ArticleDetailItem 文章详情属性

type ArticleFmtItem

type ArticleFmtItem struct {
	FmtStatus string `json:"fmt_status" dc:"格式化状态"`
	FmtIsShow string `json:"fmt_is_show" dc:"格式化显示"`
}

ArticleFmtItem 格式化文章状态属性

type ArticleGetListInput

type ArticleGetListInput struct {
	CommonPaginationItem
	ArticleWhereItem
}

ArticleGetListInput 获取文章列表请求参数

type ArticleGetListOutput

type ArticleGetListOutput struct {
	CommonResponseItem
	Rows []ArticleListItem `json:"rows" dc:"数据列表"`
}

ArticleGetListOutput 获取文章列表响应结果

type ArticleListItem

type ArticleListItem struct {
	ArticleBasicItem
	ArticleDetailFmtItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

ArticleListItem 获取文章列表属性

type ArticleStatusShowItem

type ArticleStatusShowItem struct {
	Status uint `json:"status" dc:"文章状态"`
	IsShow uint `json:"is_show" dc:"是否显示"`
	Sort   uint `json:"sort" dc:"排序"`
}

ArticleStatusShowItem 文章状态属性

type ArticleUrlItem

type ArticleUrlItem struct {
	ImgUrl   string `json:"img_url" dc:"图片URL"`
	VideoUrl string `json:"video_url" dc:"视频URL"`
}

ArticleUrlItem 文章视频图片URL属性

type ArticleWhereItem

type ArticleWhereItem struct {
	Name       string `json:"name" dc:"文章名"`
	Cid        int    `json:"cid" dc:"类目ID"`
	AssocAlias string `json:"assoc_alias" dc:"关联别名"`
	Status     int    `json:"status" dc:"文章状态"`
	IsShow     int    `json:"is_show" dc:"是否显示"`
}

ArticleWhereItem 文章查询条件属性

type AttachmentBasicItem

type AttachmentBasicItem struct {
	Id          uint   `json:"id"           description:"附件ID"`                  // 附件ID
	CatId       uint   `json:"cat_id"       description:"附件分类"`                  // 附件分类
	Name        string `json:"name"         description:"附件名"`                   // 附件名
	RealName    string `json:"real_name"    description:"附件原名"`                  // 附件原名
	AttSize     int    `json:"att_size"     description:"附件尺寸大小"`                // 附件尺寸大小
	AttPath     string `json:"att_path"     description:"附件路径"`                  // 附件路径
	AttUrl      string `json:"att_url"      description:"附近地址"`                  // 附近地址
	AttType     string `json:"att_type"     description:"附件类型:image/png"`        // 附件类型:image/png
	Position    uint   `json:"position"     description:"排序位置:从小到大"`             // 排序位置:从小到大
	ChannelId   uint   `json:"channel_id"   description:"渠道ID"`                  // 渠道ID
	StorageType string `json:"storage_type" description:"存储类型:local本地,qiniu七牛等"` // 存储类型:local本地,qiniu七牛等
	Hasher      string `json:"hasher"       description:"Hash值"`                 // Hash值
	AttachId    string `json:"attach_id"    description:"附件ID"`                  // 附件ID
	Width       uint   `json:"width"        description:"宽度"`                    // 宽度
	Height      uint   `json:"height"       description:"高度"`                    // 高度
}

AttachmentBasicItem 文件基础属性

type AttachmentUrlAttrItem added in v1.0.1

type AttachmentUrlAttrItem struct {
	AttachmentUrlItem
	Hasher         string `json:"hasher"  dc:"Hash值"`           // Hash值
	AttachId       string `json:"attach_id" dc:"附件ID"`          // 附件ID
	Width          uint   `json:"width" dc:"宽度"`                // 宽度
	Height         uint   `json:"height" dc:"高度"`               // 高度
	AttSize        uint   `json:"att_size" dc:"附件尺寸大小"`         // 附件尺寸大小
	AttType        string `json:"att_type" dc:"附件类型:image/png"` // 附件类型:image/png
	Duration       uint   `json:"duration" dc:"视频时长"`
	DurationString string `json:"duration_string" dc:"格式化视频时长"`
}

AttachmentUrlAttrItem 附件URL属性信息

type AttachmentUrlItem

type AttachmentUrlItem struct {
	AttPath string `json:"att_path" dc:"附件路径"`
	AttUrl  string `json:"att_url" dc:"附件URL"`
}

AttachmentUrlItem 附件地址属性

type AttributeAuthItem added in v1.0.1

type AttributeAuthItem struct {
	EpisodesNum       uint `json:"episodes_num" dc:"总集数"`
	UpEpisodesNum     int  `json:"up_episodes_num" dc:"已上传集数"`
	IsSeries          uint `json:"is_series" dc:"是否连续剧:0单剧,1连续剧"`
	FreePlayNum       uint `json:"free_play_num" dc:"免费播放集数(连续剧)"`
	TrialDuration     uint `json:"trial_duration" dc:"试看时长(单剧)"`
	CompletePanguCoin uint `json:"complete_pangu_coin" dc:"全集购买盘古币"`
	SinglePanguCoin   uint `json:"single_pangu_coin" dc:"单集购买盘古币"`
}

AttributeAuthItem 视频属性授权属性

type BillItemAndUpdateBillInput added in v1.0.5

type BillItemAndUpdateBillInput struct {
	PGCoinConsumeInput                           // 盘古币消费请求参数
	BillList           []UserAvailablePGCoinItem // 盘古币账单列表
	TransactionNo      string                    // 盘古币流水号
}

BillItemAndUpdateBillInput 生成盘古币账单明细和更新账单

type CheckAvailableCoins added in v1.0.5

type CheckAvailableCoins struct {
	ConsumedCoins      uint // 消费盘古币
	BillAvailableCoins uint // 账单可用盘古币
	FundsCoins         uint // 用户资金可用盘古币
}

CheckAvailableCoins 验证用户可用盘古币

type CommonFormSideItem added in v1.0.5

type CommonFormSideItem struct {
	FormSide enums.FormSide `json:"form_side" dc:"平台端"`
}

CommonFormSideItem 平台端

type CommonIncOrDecByIdItem

type CommonIncOrDecByIdItem struct {
	Id []uint // ID字段
	CommonIncOrDecItem
}

CommonIncOrDecByIdItem 根据主键ID更新字段数量

type CommonIncOrDecItem

type CommonIncOrDecItem struct {
	Columns  string // 更新字段
	Amount   int    // 更新数量
	IncByDec bool   // 是否增量和减量:false增量,true减量
}

CommonIncOrDecItem 增量或减量属性

type CommonListAndTotalInput

type CommonListAndTotalInput struct {
	CommonPaginationItem
	Where interface{} `json:"where"`
	Sort  string      `json:"sort"`
}

CommonListAndTotalInput 公共处理列表和总数请求参数

type CommonPaginationItem

type CommonPaginationItem struct {
	Page int `json:"page" dc:"页码"`
	Size int `json:"size" dc:"查询数量"`
}

CommonPaginationItem 公共分页属性

type CommonResponseItem

type CommonResponseItem struct {
	Total int `json:"total" dc:"总数"`
}

CommonResponseItem 公共响应资源属性

type CommonSearchDateItem added in v1.0.5

type CommonSearchDateItem struct {
	SearchAt    string `json:"search_at" dc:"搜索时间"`
	IsDefaultAt bool   `json:"is_default_at" dc:"是否启用默认时间:false否, true启用"`
}

CommonSearchDateItem 公共搜索时间

type ConfigDetailItem

type ConfigDetailItem struct {
	entity.Config
}

ConfigDetailItem 配置详情

type ConfigGroupCategoryItem

type ConfigGroupCategoryItem struct {
	Id          uint   `json:"id" dc:"配置组ID"`
	Name        string `json:"name" dc:"配置组名"`
	GroupName   string `json:"group_name" dc:"配置组关联名"`
	Description string `json:"description" dc:"简介详情"`
	Pid         uint   `json:"pid" dc:"父级ID"`
}

ConfigGroupCategoryItem 分类配置组属性

type ConfigGroupItem

type ConfigGroupItem struct {
	GroupName string `json:"group_name" dc:"配置组名"`
	GroupId   uint   `json:"group_id" dc:"配置组ID"`
	ConfigNameValueItem
}

ConfigGroupItem 配置组名数据

type ConfigGroupTreeItem

type ConfigGroupTreeItem struct {
	ConfigGroupCategoryItem
	Children []ConfigGroupTreeItem `json:"children" dc:"子级配置"`
}

ConfigGroupTreeItem 配置组详情属性

type ConfigGroupTreeListInput

type ConfigGroupTreeListInput struct {
	Name string `json:"name" dc:"配置名"`
}

ConfigGroupTreeListInput 获取配置组列表请求参数

type ConfigIdByNameAndGroupItem

type ConfigIdByNameAndGroupItem struct {
	ConfigGroupItem
	Id uint `json:"id" dc:"配置ID"`
}

ConfigIdByNameAndGroupItem 根据配置名和配置组获取配置ID属性

type ConfigListInput

type ConfigListInput struct {
	GroupId   uint   `json:"group_id" dc:"配置组ID"`
	GroupName string `json:"group_name" dc:"配置组名"`
}

ConfigListInput 获取配置列表请求参数

type ConfigNameValueItem

type ConfigNameValueItem struct {
	Name         string `json:"name" dc:"配置名"`
	Value        string `json:"value" dc:"配置值"`
	DefaultValue string `json:"default_value" dc:"默认配置值"`
}

ConfigNameValueItem 配置名和配置值

type ConfigSaveHandlerItem

type ConfigSaveHandlerItem struct {
	SaveAll []entity.Config // 配置列表
	Keys    []string        // 缓存KEY
}

ConfigSaveHandlerItem 业务配置保存处理属性

type Context

type Context struct {
	User *UserAccountItem
	Data map[enums.ContextDataKey]interface{}
}

自定义上下文

type CreateVideoPurchaseInput added in v1.0.5

type CreateVideoPurchaseInput struct {
	VideoId       uint               `json:"video_id" dc:"视频ID"`
	BuyType       enums.VideoBuyType `json:"buy_type" dc:"购买类型"`
	EpisodesIdSet []uint             `json:"episodes_id_set" dc:"剧集ID集合:单集购买必传"`
}

CreateVideoPurchaseInput 创建购买视频请求参数

type CurrTemplateItem

type CurrTemplateItem struct {
	Name       string `json:"name" dc:"模板名称"`
	Content    string `json:"content" dc:"模板内容"`
	TemplateId string `json:"template_id" dc:"外部平台模板ID"`
}

CurrTemplateItem 获取当前模板内容和ID

type CurrUserLoginDeviceListOutput

type CurrUserLoginDeviceListOutput struct {
	Rows []*UserLoginDeviceItem `json:"rows" dc:"数据"`
}

CurrUserLoginDeviceListOutput 当前用户登陆设备列表属性

type DepartmentDetailItem

type DepartmentDetailItem struct {
	DepartmentItem
	RoleId   []uint              `json:"role_id" dc:"角色ID"`
	RoleList []RoleIdAndNameItem `json:"role_list" dc:"角色列表"`
}

DepartmentDetailItem 部门详情属性

type DepartmentItem

type DepartmentItem struct {
	Id         uint   `json:"id" dc:"部门ID"`
	DepartName string `json:"depart_name" dc:"部门名称"`
	AbbrevName string `json:"abbrev_name" dc:"部门简写"`
	DepartNo   string `json:"depart_no" dc:"部门编号"`
	Pid        uint   `json:"pid" dc:"父级ID"`
	Status     uint   `json:"status" dc:"部门状态"`
	Sort       uint   `json:"sort" dc:"排序"`
}

DepartmentItem 部门属性

type DepartmentNameItem

type DepartmentNameItem struct {
	Id         uint   `json:"id" dc:"部门ID"`
	DepartName string `json:"depart_name" dc:"部门名"`
}

DepartmentNameItem 通过部门ID获取部门名称属性

type DepartmentPeopleNumItem

type DepartmentPeopleNumItem struct {
	DepartId uint `json:"depart_id" dc:""`
	Total    uint `json:"total" dc:"部门人数"`
}

DepartmentPeopleNumItem 部门人数熟悉

type DepartmentRoleId

type DepartmentRoleId struct {
	RoleId uint `json:"role_id" dc:"角色ID"`
}

DepartmentRoleId 部门角色ID

type DepartmentSaveInput

type DepartmentSaveInput struct {
	DepartmentItem
	RoleId []uint `json:"role_id" dc:"角色ID"`
}

DepartmentSaveInput 保存部门数据请求参数

type DepartmentTreeItem

type DepartmentTreeItem struct {
	DepartmentItem
	PeopleNum uint `json:"people_num" dc:"部门人数"`
}

DepartmentTreeItem 树形部门属性

type EpisodesResolutionDetailItem added in v1.0.1

type EpisodesResolutionDetailItem struct {
	VideoResolutionAttrItem
	VideoEpisodesBasicItem
}

EpisodesResolutionDetailItem 获取视频续集清晰度详情

type GenBuyEpisodesInput added in v1.0.5

type GenBuyEpisodesInput struct {
	Uid      uint
	VideoId  uint
	BuyId    uint
	BillId   uint
	Episodes []VideoEpisodesBuyItem
}

GenBuyEpisodesInput 生成购买剧集请求参数

type GenVideoSaleBillItem added in v1.0.5

type GenVideoSaleBillItem struct {
	BuyType       enums.VideoBuyType
	AuthDetail    VideoDetailAuthItem
	Uid           uint
	ConsumedCoins uint
	Episodes      []VideoEpisodesBuyItem
	BuyStatus     enums.VideoBuyStatus
}

GenVideoSaleBillItem 生成视频购买账单数据

type LoginAfterLogoutItem

type LoginAfterLogoutItem struct {
	Uid          uint                   `json:"uid"`
	AccountToken string                 `json:"account_token"`
	LoginStatus  enums.LoginOauthStatus `json:"login_status"`
}

LoginAfterLogoutItem 用户退出登录后置处理

type LoginDeviceAttrItem

type LoginDeviceAttrItem struct {
	LoginIp         string `json:"login_ip" dc:"登录IP"`
	LoginIpLocation string `json:"login_ip_location" dc:"登录IP地址"`
	DeviceType      string `json:"device_type" dc:"设备类型"`
	DeviceContent   string `json:"device_content" dc:"设备详情"`
	Mac             string `json:"mac" dc:"MAC地址"`
	CreateAt        string `json:"create_at" dc:"创建时间"`
}

LoginDeviceAttrItem 用户登陆设备属性

type LoginUserIdAndTokenItem

type LoginUserIdAndTokenItem struct {
	UserId uint   `json:"user_id" dc:"用户ID"`
	Token  string `json:"token" dc:"登录Token"`
}

LoginUserIdAndTokenItem 用户登录获取用户ID和Token

type PGCConfigItem added in v1.0.5

type PGCConfigItem struct {
	PGCRate        uint   `json:"pgc_rate" dc:"兑换比例,如:1:100"`
	Currency       string `json:"currency" dc:"兑换货币符号"`
	PGCExpired     int    `json:"pgc_expired" dc:"盘古币效期时间"`
	PGCExpiredUnit string `json:"pgc_expired_unit" dc:"盘古币效期单位"`
	PGCSymbol      string `json:"pgc_symbol" dc:"盘古币符号PGC"`
	PGCExpiredTime int64  `json:"pgc_expired_time" dc:"过期时间(S)"`
	PGCExpiredAt   string `json:"pgc_expired_at" dc:"过期时间(date)"`
}

PGCConfigItem 盘古币配置

type PGCoinBillDetailItem added in v1.0.5

type PGCoinBillDetailItem struct {
	PGCoinBillItem
	Uid    uint   `json:"uid" dc:"用户ID"`
	Remark string `json:"remark" dc:"备注"`
}

PGCoinBillDetailItem 盘古币账单详情属性

type PGCoinBillDetailOutput added in v1.0.5

type PGCoinBillDetailOutput struct {
	PGCoinBillDetailItem
	Items []entity.PanguCoinBillItem `json:"items" dc:"账单明细"`
}

PGCoinBillDetailOutput 获取盘古币账单详情响应结果

type PGCoinBillItem added in v1.0.5

type PGCoinBillItem struct {
	Id                 uint                   `json:"id" dc:"账单ID"`
	OrderId            uint                   `json:"order_id" dc:"订单ID"`
	BillNo             string                 `json:"bill_no" dc:"账单编号"`
	TotalPanguCoin     uint                   `json:"total_pangu_coin" dc:"原始兑换盘古币"`
	AvailablePanguCoin uint                   `json:"available_pangu_coin" dc:"可用盘古币"`
	ExpiredPanguCoin   uint                   `json:"expired_pangu_coin" dc:"过期盘古币"`
	ExpiredDate        string                 `json:"expired_date" dc:"到期时间"`
	Status             enums.PGCoinBillStatus `json:"status" dc:"账单状态"`
	BillType           enums.PGCoinBillType   `json:"bill_type" dc:"账单类型"`
	CreateAt           string                 `json:"create_at" dc:"创建时间"`
}

PGCoinBillItem 盘古币账单属性

type PGCoinBillListInput added in v1.0.5

type PGCoinBillListInput struct {
	CommonPaginationItem
	PGCoinBillWhere
}

PGCoinBillListInput 获取盘古币账单列表请求参数

type PGCoinBillListOutput added in v1.0.5

type PGCoinBillListOutput struct {
	CommonResponseItem
	Rows []PGCoinBillItem `json:"rows" dc:"数据列表"`
}

PGCoinBillListOutput 获取盘古币账单列表响应结果

type PGCoinBillWhere added in v1.0.5

type PGCoinBillWhere struct {
	Uid    uint                   `json:"uid" dc:"用户ID"`
	BillNo string                 `json:"bill_no" dc:"账单编号"`
	Status enums.PGCoinBillStatus `json:"status" dc:"账单状态"`
	Type   enums.PGCoinBillType   `json:"type" dc:"账单类型"`
}

PGCoinBillWhere 盘古币账单条件属性

type PGCoinConsumeInput added in v1.0.5

type PGCoinConsumeInput struct {
	ConsumePGCoin uint `json:"consume_pg_coin" dc:"消费盘古币数量"`
	Uid           uint `json:"uid" dc:"用户ID"`
}

PGCoinConsumeInput 盘古币消费请求参数

type PGCoinOrderAtItem added in v1.0.5

type PGCoinOrderAtItem struct {
	PayAt    string `json:"pay_at" dc:"支付时间"`
	RefundAt string `json:"refund_at" dc:"退款时间"`
	CreateAt string `json:"create_at" dc:"创建时间"`
}

PGCoinOrderAtItem 盘古币订单时间

type PGCoinOrderBasicItem added in v1.0.5

type PGCoinOrderBasicItem struct {
	Id      uint   `json:"id" dc:"盘古币订单ID"`
	Uid     uint   `json:"uid" dc:"用户ID"`
	PayCode string `json:"pay_code" dc:"支付方式"`
	PayName string `json:"pay_name" dc:"支付名称"`
}

PGCoinOrderBasicItem 盘古币订单基础信息

type PGCoinOrderContentItem added in v1.0.5

type PGCoinOrderContentItem struct {
	Content string `json:"content" dc:"内容"`
	Remark  string `json:"remark" dc:"备注"`
}

PGCoinOrderContentItem PGCoinOrderContentItem 盘古币订单内容

type PGCoinOrderDetailItem added in v1.0.6

PGCoinOrderDetailItem 盘古币订单详情

type PGCoinOrderFeeItem added in v1.0.5

type PGCoinOrderFeeItem struct {
	PayFee          float64 `json:"pay_fee" dc:"支付金额"`
	RefundFee       float64 `json:"refund_fee" dc:"退款金额"`
	PanguCoin       uint    `json:"pangu_coin" dc:"兑换盘古币数量"`
	RefundPanguCoin uint    `json:"refund_pangu_coin" dc:"退款盘古币数量"`
	Currency        string  `json:"currency" dc:"货币符号"`
}

PGCoinOrderFeeItem 盘古币订单金额

type PGCoinOrderListInput added in v1.0.5

type PGCoinOrderListInput struct {
	CommonPaginationItem
	PGCoinOrderWhere
}

PGCoinOrderListInput 获取盘古币订单列表

type PGCoinOrderListItem added in v1.0.5

PGCoinOrderListItem 盘古币订单列表属性

type PGCoinOrderListOutput added in v1.0.5

type PGCoinOrderListOutput struct {
	CommonResponseItem
	Rows []PGCoinOrderListItem `json:"rows" dc:"数据列表"`
}

PGCoinOrderListOutput 获取盘古币订单列表

type PGCoinOrderNoSetItem added in v1.0.5

type PGCoinOrderNoSetItem struct {
	OrderNo  string `json:"order_no" dc:"订单号"`
	PayNo    string `json:"pay_no" dc:"第三方支付交易号"`
	TradeNo  string `json:"trade_no" dc:"商户交易号"`
	RefundNo string `json:"refund_no" dc:"第三方退款交易号"`
}

PGCoinOrderNoSetItem 盘古币订单编号集合

type PGCoinOrderWhere added in v1.0.5

type PGCoinOrderWhere struct {
	Id        uint                    `json:"id" dc:"充值订单ID"`
	Uid       uint                    `json:"uid" dc:"用户ID"`
	OrderNo   string                  `json:"order_no" dc:"订单号"`
	PayNo     string                  `json:"pay_no" dc:"第三方支付交易号"`
	TradeNo   string                  `json:"trade_no" dc:"商户交易号"`
	RefundNo  string                  `json:"refund_no" dc:"第三方退款交易号"`
	PayCode   string                  `json:"pay_code" dc:"支付方式"`
	PayAt     string                  `json:"pay_at" dc:"支付时间"`
	RefundAt  string                  `json:"refund_at" dc:"退款时间"`
	Status    enums.PGCoinOrderStatus `json:"status" dc:"订单状态"`
	PayStatus enums.PGCoinOrderPay    `json:"pay_status" dc:"支付状态"`
	CommonSearchDateItem
}

PGCoinOrderWhere 盘古币订单搜索条件

type PGCoinPayDetailInput added in v1.0.5

type PGCoinPayDetailInput struct {
	OrderNo string `json:"order_no" dc:"订单编号"`
	PayType string `json:"pay_type" dc:"支付方式"`
}

PGCoinPayDetailInput 获取盘古币支付信息请求参数

type PGCoinPayDetailItem added in v1.0.5

type PGCoinPayDetailItem struct {
	Id        uint                    `json:"id" dc:"订单ID"`
	Uid       uint                    `json:"uid" dc:"用户ID"`
	PanguCoin uint                    `json:"pangu_coin" dc:"盘古币数量"`
	PayFee    float64                 `json:"pay_fee" dc:"支付金额"`
	Status    enums.PGCoinOrderStatus `json:"status" dc:"订单状态"`
	Currency  string                  `json:"currency" dc:"支付货币"`
	PayStatus enums.PGCoinOrderPay    `json:"pay_status" dc:"支付状态"`
}

PGCoinPayDetailItem 盘古币支付详情属性

type PGCoinPayDetailOutput added in v1.0.5

type PGCoinPayDetailOutput struct {
	PayDetail interface{} `json:"pay_detail" dc:"获取支付信息,如支付链接"`
}

PGCoinPayDetailOutput 获取盘古币支付信息响应结果

type PGCoinPayNotifyInput added in v1.0.5

type PGCoinPayNotifyInput struct {
	TradeNo string `json:"trade_no" dc:"订单商户支付编号"`
	PayNo   string `json:"pay_no" dc:"第三方支付单号"`
	PayType string `json:"pay_type" dc:"支付方式"`
}

PGCoinPayNotifyInput 支付充值盘古币回调请求参数

type PGCoinRechargeBillInput added in v1.0.5

type PGCoinRechargeBillInput struct {
	OrderId           uint                 `json:"order_id" dc:"订单ID"`
	Uid               uint                 `json:"uid" dc:"用户ID"`
	RechargePanguCoin uint                 `json:"recharge_pangu_coin" dc:"充值盘古币数量"`
	Type              enums.PGCoinBillType `json:"type" dc:"充值类型"`
	Remark            string               `json:"remark" dc:"备注"`
}

PGCoinRechargeBillInput 生成盘古币充值账单请求参数

type PGCoinRechargeInput added in v1.0.5

type PGCoinRechargeInput struct {
	RechargePGC uint   `json:"recharge_pgc" dc:"充值盘古币数量"`
	PayType     string `json:"pay_type" dc:"支付方式"`
}

PGCoinRechargeInput 盘古币充值记录

type PGCoinRechargeOutput added in v1.0.5

type PGCoinRechargeOutput struct {
	OrderNo string  `json:"order_no" dc:"订单号"`
	PayFee  float64 `json:"pay_fee" dc:"充值金额"`
}

PGCoinRechargeOutput 盘古币充值响应参数

type PGCoinTransactionListInput added in v1.0.5

type PGCoinTransactionListInput struct {
	CommonPaginationItem
	PGCoinTransactionWhere
}

PGCoinTransactionListInput 获取盘古币流水列表

type PGCoinTransactionListOutput added in v1.0.5

type PGCoinTransactionListOutput struct {
	CommonResponseItem
	Rows []entity.PanguCoinTransaction `json:"rows" dc:"数据列表"`
}

PGCoinTransactionListOutput 获取盘古币流水列表

type PGCoinTransactionWhere added in v1.0.5

type PGCoinTransactionWhere struct {
	Uid           uint   `json:"uid" dc:"用户ID"`
	TransactionNo string `json:"transaction_no" dc:"流水号"`
	CommonSearchDateItem
}

PGCoinTransactionWhere 盘古币流水查询条件

type PermAssocPermId

type PermAssocPermId struct {
	PermissionsId uint `json:"permissions_id" dc:"权限ID"`
}

PermAssocPermId 权限关联-权限ID

type PermCodeActionItem

type PermCodeActionItem struct {
	ActionCode map[string]map[string]string `json:"action_code" dc:"页面操作权限码"`
	ActionApi  map[string]string            `json:"action_api" dc:"操作接口码"`
}

PermCodeActionItem 权限码操作属性

type PermCustomUpdateColumnInput

type PermCustomUpdateColumnInput struct {
	PermId  uint                          `json:"perm_id" dc:"权限ID"`
	Columns enums.PermCustomUpdateColumns `json:"columns" dc:"字段"`
	Value   interface{}                   `json:"value" dc:"更新值"`
}

PermCustomUpdateColumnInput 权限自定义更新字段请求参数

type PermissionsListItem

type PermissionsListItem struct {
	PermissionsTreeItem
	IsDisabled uint   `json:"is_disabled" dc:"是否禁用:0正常,1禁用"`
	PermCode   string `json:"perm_code" dc:"权限码"`
	Sort       uint   `json:"sort" dc:"排序"`
}

PermissionsListItem 权限列表菜单属性

type PermissionsListTreeItem

type PermissionsListTreeItem struct {
	PermissionsListItem
	Children []PermissionsListTreeItem `json:"children" dc:"子级"`
}

PermissionsListTreeItem 权限列表菜单树形属性

type PermissionsMenuTreeIem

type PermissionsMenuTreeIem struct {
	PermissionsTreeItem
	Children []PermissionsMenuTreeIem `json:"children" dc:"子级"`
}

PermissionsMenuTreeIem 权限菜单树形属性

type PermissionsPathCodeItem

type PermissionsPathCodeItem struct {
	Id       uint   `json:"id" dc:"权限ID"`
	Pid      uint   `json:"pid" dc:"父级ID"`
	Path     string `json:"path" dc:"页面地址"`
	ApiPath  string `json:"api_path" dc:"api地址"`
	PermCode string `json:"perm_code" dc:"权限码"`
	Name     string `json:"name" dc:"权限名"`
}

PermissionsPathCodeItem 权限路由权限码属性

type PermissionsTreeItem

type PermissionsTreeItem struct {
	Id       uint   `json:"id" dc:"权限ID"`
	Name     string `json:"name" dc:"权限名"`
	MenuType uint   `json:"menu_type" dc:"权限类型"`
	Path     string `json:"path" dc:"页面地址"`
	Pid      uint   `json:"pid" dc:"父级ID"`
	IsShow   uint   `json:"is_show" dc:"菜单是否显示:0显示,1隐藏"`
}

PermissionsTreeItem 树形权限结构属性

type PrepareRefundBillItem added in v1.0.5

type PrepareRefundBillItem struct {
	BillDetail      *VideoBillRefundItem
	RefundCoins     uint
	EpisodesIdSet   []uint
	Status          enums.VideoBuyBillStatus
	EpisodesContent string
}

PrepareRefundBillItem 整理退款的账单信息

type RecordLogItem

type RecordLogItem struct {
	Content      string // 日志内容也是日志名
	TagName      string // TAG栏目名-例如:系统管理
	ApiUrl       string // 接口地址
	ResponseText string // 响应结果
}

RecordLogItem 记录日志属性

type RefundVideoBillInput added in v1.0.5

type RefundVideoBillInput struct {
	BillId        uint   `json:"bill_id" dc:"购买账单ID"`
	RefundCoins   uint   `json:"refund_coins" dc:"退款盘古币"`
	EpisodesIdSet []uint `json:"episodes_id_set" dc:"剧集ID集合"`
}

RefundVideoBillInput 视频退款请求参数

type RoleIdAndNameItem

type RoleIdAndNameItem struct {
	Id   uint   `json:"id" dc:"角色ID"`
	Name string `json:"name" dc:"角色名称"`
}

RoleIdAndNameItem 角色ID和名称属性

type RolesDetailItem

type RolesDetailItem struct {
	RolesItem
	PermId []uint `json:"perm_id" dc:"权限ID集合"`
}

RolesDetailItem 角色详情属性

type RolesItem

type RolesItem struct {
	Id          uint   `json:"id" dc:"角色ID"`
	Name        string `json:"name" dc:"角色名称"`
	Description string `json:"description" dc:"角色详情"`
	RoleStatus  uint   `json:"role_status" dc:"角色状态"`
	Sort        uint   `json:"sort" dc:"排序"`
	CreateAt    string `json:"create_at" dc:"创建时间"`
}

RolesItem 角色属性

type RolesListInput

type RolesListInput struct {
	CommonPaginationItem
	Name   string           `json:"name" dc:"角色名"`
	Status enums.RoleStatus `json:"status" dc:"角色状态"`
}

RolesListInput 获取角色列表

type RolesListOutput

type RolesListOutput struct {
	CommonResponseItem
	Rows []RolesItem `json:"rows" dc:"角色列表"`
}

RolesListOutput 获取角色列表-响应结果

type SendOutFromSmsItem

type SendOutFromSmsItem struct {
	Mobile []string `json:"mobile" dc:"发送手机号"`
	SendSmsTemplateItem
}

SendOutFromSmsItem 通过手机号给平台提交短信发送信息

type SendSmsResultItem

type SendSmsResultItem struct {
	Mobile string `json:"mobile" dc:"发送手机号"`
	SendSmsTemplateItem
	CurrTemplateItem
}

SendSmsResultItem 发送短信记录属性

type SendSmsTemplateItem

type SendSmsTemplateItem struct {
	VarAlias       enums.SmsAlias `json:"var_alias" dc:"模板变量"`
	TemplateParams []string       `json:"template_params" dc:"短信模板参数"`
	SmsType        enums.SmsType  `json:"sms_type" dc:"短信类型"`
	Code           string         `json:"code" dc:"短信验证码"`
}

SendSmsTemplateItem 发送短信模板属性

type SmsOutItem

type SmsOutItem struct {
	TemplateId    string `json:"template_id" dc:"平台短信模板ID"`
	FromType      string `json:"from_type" dc:"短信平台"`
	OutTmplStatus string `json:"out_tmpl_status" dc:"外部平台状态"`
}

SmsOutItem 外部短信平台模板属性

type SmsRecordDetailItem

type SmsRecordDetailItem struct {
	SmsRecordItem
	SmsRecordExtItem
	FmtSmsType string `json:"fmt_sms_type" dc:"格式化短信类型"`
}

SmsRecordDetailItem 短信记录详情属性

type SmsRecordExtItem

type SmsRecordExtItem struct {
	Ip         string `json:"ip" dc:"IP"`
	TemplateId string `json:"template_id" dc:"平台模板ID"`
	CreateAt   string `json:"create_at" dc:"创建时间"`
}

SmsRecordExtItem 短信记录扩展属性

type SmsRecordItem

type SmsRecordItem struct {
	Id      uint   `json:"id" dc:"短信发送ID"`
	Mobile  string `json:"mobile" dc:"手机号"`
	Content string `json:"content" dc:"短信内容"`
	Code    string `json:"code" dc:"验证码"`
	SmsType uint   `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"`
	Results string `json:"results" dc:"发送结果"`
}

SmsRecordItem 短信发送记录属性

type SmsRecordListInput

type SmsRecordListInput struct {
	CommonPaginationItem
	SmsRecordWhereItem
}

SmsRecordListInput 获取短信记录列表请求参数

type SmsRecordListOutput

type SmsRecordListOutput struct {
	CommonResponseItem
	Rows []*SmsRecordDetailItem `json:"rows" dc:"数据集"`
}

SmsRecordListOutput 获取短信记录列表响应结果

type SmsRecordWhereItem

type SmsRecordWhereItem struct {
	Mobile  string `json:"mobile" dc:"手机号"`
	Content string `json:"content" dc:"短信内容"`
	SmsType int    `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"`
}

SmsRecordWhereItem 短信记录搜索条件属性

type SmsSendRecordNewItem

type SmsSendRecordNewItem struct {
	SmsRecordItem
}

SmsSendRecordNewItem 通过手机号获取短信发送最新记录

type SmsSyncOutTmplStatusItem

type SmsSyncOutTmplStatusItem struct {
	Id            uint   `json:"id" dc:"关联ID"`
	TemplateId    string `json:"template_id" dc:"模板ID"`
	OutTmplStatus string `json:"out_tmpl_status" dc:"外部模板状态"`
}

SmsSyncOutTmplStatusItem 同步外部平台短信状态属性

type SmsTemplateDetailOutput

type SmsTemplateDetailOutput struct {
	SmsTemplateItem
}

SmsTemplateDetailOutput 获取短信模板详情输出结果

type SmsTemplateItem

type SmsTemplateItem struct {
	entity.SmsTemplate
	TmplOut    SmsOutItem `json:"tmpl_out" dc:"外部短信平台属性"`
	FmtAlias   string     `json:"fmt_alias" dc:"模板别名"`
	FmtStatus  string     `json:"fmt_status" dc:"状态"`
	FmtSmsType string     `json:"fmt_sms_type" dc:"短信类型"`
}

SmsTemplateItem 短信模板属性

type SmsTemplateListInput

type SmsTemplateListInput struct {
	CommonPaginationItem
	SmsTemplateWhereItem
}

SmsTemplateListInput 获取短信模板列表请求参数

type SmsTemplateListOutput

type SmsTemplateListOutput struct {
	CommonResponseItem
	Rows []SmsTemplateItem `json:"rows" dc:"短信数据列表"`
}

SmsTemplateListOutput 获取短信模板列表输出结果

type SmsTemplateOutItem

type SmsTemplateOutItem struct {
	VarAlias string `json:"var_alias" dc:"模板变量"`
	SmsOutItem
}

SmsTemplateOutItem 外部SMS模板属性

type SmsTemplateOutListInput

type SmsTemplateOutListInput struct {
	Alias    string `json:"alias" dc:"系统模板变量"`
	FromType string `json:"from_type" dc:"平台类型:tencent腾讯,alipay阿里云"`
}

SmsTemplateOutListInput 获取外部平台SMS模板列表请求参数

type SmsTemplateOutListOutput

type SmsTemplateOutListOutput []SmsTemplateOutItem

SmsTemplateOutListOutput 获取外部SMS模板列表响应结果

type SmsTemplateWhereItem

type SmsTemplateWhereItem struct {
	Name    string `json:"name" dc:"模板名"`
	Alias   string `json:"alias" dc:"模板变量别名"`
	Status  int    `json:"status" dc:"模板状态:0关闭,1启用"`
	SmsType int    `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"`
}

SmsTemplateWhereItem 短信模板搜索条件

type SysMapAttrItem

type SysMapAttrItem struct {
	Explain   string `json:"explain" dc:"字典名解析"`
	IsDisable uint   `json:"is_disable" dc:"是否禁用:0正常,1禁用"`
}

SysMapAttrItem 字典属性

type SysMapBasicItem

type SysMapBasicItem struct {
	Id   uint   `json:"id" dc:"字典ID"`
	Name string `json:"name" dc:"字典名"`
}

SysMapBasicItem 系统字典基础属性

type SysMapDetailItem

type SysMapDetailItem struct {
	SysMapBasicItem
	SysMapAttrItem
}

SysMapDetailItem 获取系统字典详情属性

type SysMapGetListInput

type SysMapGetListInput struct {
	CommonPaginationItem
	Name      string `json:"name" dc:"字典名"`
	IsDisable int    `json:"is_disable" dc:"是否禁用:0正常,1禁用"`
}

SysMapGetListInput 获取系统字典列表请求参数

type SysMapGetListOutput

type SysMapGetListOutput struct {
	CommonResponseItem
	Rows []SysMapListItem `json:"rows" dc:"数据列表"`
}

SysMapGetListOutput 获取系统字典列表输出

type SysMapListItem

type SysMapListItem struct {
	SysMapBasicItem
	SysMapAttrItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

SysMapListItem 获取系统字典列表属性

type SysMapValueAttrItem

type SysMapValueAttrItem struct {
	Value   string `json:"value" dc:"字典值"`
	Name    string `json:"name" dc:"字典名"`
	Explain string `json:"explain" dc:"字典值解析"`
}

SysMapValueAttrItem 字典值属性

type SysMapValueBasicItem

type SysMapValueBasicItem struct {
	Id uint `json:"id" dc:"字典值ID"`
	SysMapValueAttrItem
}

SysMapValueBasicItem 字典值基础属性

type SysMapValueDetailItem

type SysMapValueDetailItem struct {
	SysMapValueBasicItem
	SysMapValueAttrItem
}

SysMapValueDetailItem 字典值详情属性

type SysMapValueListItem

type SysMapValueListItem struct {
	SysMapValueBasicItem
	SysMapValueAttrItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

SysMapValueListItem 字典值列表属性

type SystemLogAttrItem

type SystemLogAttrItem struct {
	ManageId     uint   `json:"manage_id" dc:"管理员ID"`
	MerchantId   uint   `json:"merchant_id" dc:"商户ID"`
	ResponseText string `json:"response_text" dc:"响应结果"`
	ParamText    string `json:"param_text" dc:"请求参数"`
}

SystemLogAttrItem 系统日志属性

type SystemLogDetailItem

type SystemLogDetailItem struct {
	SystemLogItem
	SystemLogAttrItem
	SystemLogFmtItem
}

SystemLogDetailItem 系统日志详情属性

type SystemLogFmtItem

type SystemLogFmtItem struct {
	FmtOperateType string `json:"fmt_operate_type" dc:"格式化日志类型"`
}

SystemLogFmtItem 格式化系统日志属性

type SystemLogGetDetailOutput

type SystemLogGetDetailOutput struct {
	*SystemLogDetailItem
}

SystemLogGetDetailOutput 系统日志获取详情响应结果

type SystemLogGetListInput

type SystemLogGetListInput struct {
	CommonPaginationItem
	SystemLogWhereItem
}

SystemLogGetListInput 获取系统列表请求参数

type SystemLogGetListOutput

type SystemLogGetListOutput struct {
	CommonResponseItem
	Rows []SystemLogListItem `json:"rows" dc:"数据列表"`
}

SystemLogGetListOutput 获取日志列表响应结果

type SystemLogItem

type SystemLogItem struct {
	Id          uint   `json:"id" dc:"日志ID"`
	ModuleName  string `json:"module_name" dc:"模块名"`
	Content     string `json:"content" dc:"日志描述"`
	Ip          string `json:"ip" dc:"IP"`
	OperateType int    `json:"operate_type" dc:"日志类型"`
	UserId      uint   `json:"user_id" dc:"用户ID"`
	ApiUrl      string `json:"api_url" dc:"接口地址"`
	ManageName  string `json:"manage_name" dc:"管理员名"`
	CreateAt    string `json:"create_at" dc:"创建时间"`
}

SystemLogItem 系统日志列表属性

type SystemLogListItem

type SystemLogListItem struct {
	SystemLogItem
	SystemLogFmtItem
}

SystemLogListItem 系统日志列表属性

type SystemLogWhereItem

type SystemLogWhereItem struct {
	ModuleName  string               `json:"module_name" dc:"模块名"`
	Content     string               `json:"content" dc:"模块内容"`
	ManageName  string               `json:"manage_name" dc:"管理员名"`
	OperateType enums.LogOperateType `json:"operate_type" dc:"日志类型"`
	CreateAt    []string             `json:"create_at" dc:"创建时间"`
}

SystemLogWhereItem 系统日志搜索条件属性

type UidByAidItem

type UidByAidItem struct {
	UserId uint `json:"user_id" dc:"用户ID"`
}

UidByAidItem 通过管理员ID获取用户ID

type UpdateBillExpiredInput added in v1.0.5

type UpdateBillExpiredInput struct {
	Id        uint   `json:"id" dc:"账单ID"`
	ExpiredAt string `json:"expired_at" dc:"账单到期时间"`
	Remark    string `json:"remark" dc:"备注"`
}

UpdateBillExpiredInput 更新盘古币账单效期请求参数

type UploadAttachmentItem

type UploadAttachmentItem struct {
	AttPath     string `json:"att_path" dc:"附件路径"`
	AttUrl      string `json:"att_url" dc:"附件地址"`
	AttType     string `json:"att_type" dc:"附件类型"`
	StorageType string `json:"storage_type" dc:"存储类型"`
	Hasher      string `json:"hasher" dc:"Hash值"`
	AttachId    string `json:"attach_id" dc:"附件ID"`
	Width       uint   `json:"width" dc:"宽度"`
	Height      uint   `json:"height" dc:"高度"`
	AttSize     int    `json:"att_size" dc:"内存大小"`
	Name        string `json:"name" dc:"附件名"`
	RealName    string `json:"real_name" dc:"附件原名"`
}

UploadAttachmentItem 上传附件详情

type UploadConfigItem

type UploadConfigItem struct {
	StorageType string                 `json:"storage_type" dc:"存储类型"`
	Config      map[string]interface{} `json:"config" dc:"配置内容"`
}

UploadConfigItem 上传配置属性

type UploadConfigLocalItem

type UploadConfigLocalItem struct {
	StorageType string `json:"storage_type" dc:"存储类型"`
	Root        string `json:"root" dc:"上传根目录"`
	Path        string `json:"url" dc:"上传附件地址"`
	FileExt     string `json:"file_ext" dc:"文件上传控制"`
}

UploadConfigLocalItem 本地上传配置

type UploadFileInput

type UploadFileInput struct {
	UploadFileItem
}

UploadFileInput 上传文件请求参数

type UploadFileItem

type UploadFileItem struct {
	File       *ghttp.UploadFile `json:"file" dc:"上传对象"`
	Name       string            `json:"name" dc:"自定义文件名"`
	RandomName bool              `json:"random_name" dc:"是否随机命名文件"`
}

UploadFileItem 文件上传请求属性

type UploadFileOutput

type UploadFileOutput struct {
	UploadAttachmentItem
}

UploadFileOutput 上传文件输出结果

type UploadFileResponseItem

type UploadFileResponseItem struct {
	Id          string `json:"id" dc:"文件ID"`
	Name        string `json:"name" dc:"文件名"`
	Path        string `json:"path" dc:"文件路径"`
	Url         string `json:"url" dc:"访问Url"`
	Width       uint   `json:"width" dc:"图片宽度"`
	Height      uint   `json:"height" dc:"图片高度"`
	Size        uint   `json:"size" dc:"文件大小"`
	StorageType string `json:"storage_type" dc:"存储类型"`
}

UploadFileResponseItem 上传文件响应属性

type UserAccountItem

type UserAccountItem struct {
	Uid          uint   `json:"uid" dc:"用户ID"`
	Account      string `json:"account" dc:"账户"`
	Nickname     string `json:"nickname" dc:"昵称"`
	IsAdmin      bool   `json:"is_admin" dc:"是否管理员:false否,true是"`
	IsSupper     bool   `json:"is_supper" dc:"是否超管:false否,true是"`
	AccountToken string `json:"account_token" dc:"SHA256加密登录Token后TOKEN"`
}

UserAccountItem 用户账户信息

type UserAccountLoginPwdItem

type UserAccountLoginPwdItem struct {
	PwdHash string `json:"pwd_hash" dc:"密码Hash值"`
	PwdSalt string `json:"pwd_salt" dc:"密码盐"`
}

UserAccountLoginPwdItem 用户账户登录密码属性

type UserAccountNameItem

type UserAccountNameItem struct {
	Account  string `json:"account" dc:"账号"`
	Nickname string `json:"nickname" dc:"昵称"`
}

UserAccountNameItem 账户名属性

type UserAdminAuthDetailOutput

type UserAdminAuthDetailOutput struct {
	UserAdminDetailItem
	Detail UserBasicDetailItem `json:"detail" dc:"用户详情"`
}

UserAdminAuthDetailOutput 管理员鉴权详情

type UserAdminDetailItem

type UserAdminDetailItem struct {
	Id            uint   `json:"id" dc:"管理员ID"`
	UserId        uint   `json:"user_id" dc:"用户ID"`
	ManageName    string `json:"manage_name" dc:"管理员名"`
	ManageNo      string `json:"manage_no" dc:"管理员编号"`
	IsSuperManage uint   `json:"is_super_manage" dc:"是否超管"`
	ManageStatus  uint   `json:"manage_status" dc:"管理员状态"`
	LogoffAt      string `json:"logoff_at" dc:"注销时间"`
}

UserAdminDetailItem 用户管理员详情

type UserAdminFmtItem

type UserAdminFmtItem struct {
	FmtManageStatus  string `json:"fmt_manage_status" dc:"状态"`
	FmtIsSuperManage string `json:"fmt_is_super_manage" dc:"超管"`
}

UserAdminFmtItem 用户管理员格式化属性

type UserAdminGetDetailItem

type UserAdminGetDetailItem struct {
	UserAdminDetailItem
	UserDetail UserBasicDetailItem `json:"user_detail" dc:"用户详情"`
	UserAdminFmtItem
}

UserAdminGetDetailItem 获取用户管理员信息

type UserAdminGetDetailOutput

type UserAdminGetDetailOutput struct {
	UserAdminGetDetailItem
	DepartId   []uint               `json:"depart_id" dc:"部门ID集合"`
	DepartList []DepartmentNameItem `json:"depart_list" dc:"部门列表"`
	PermId     []uint               `json:"perm_id" dc:"权限ID集合"`
}

UserAdminGetDetailOutput 获取管理员用户详情响应结果

type UserAdminGetListInput

type UserAdminGetListInput struct {
	CommonPaginationItem
	UserAdminWhereItem
}

UserAdminGetListInput 获取管理员请求参数

type UserAdminGetListOutput

type UserAdminGetListOutput struct {
	CommonResponseItem
	Rows []UserAdminGetDetailItem `json:"rows" dc:"结果集"`
}

UserAdminGetListOutput 获取管理员列表输出结果

type UserAdminInviteAddItem

type UserAdminInviteAddItem struct {
	Token    string `json:"token" dc:"邀请Token"`
	Uid      uint   `json:"uid" dc:"用户ID"`
	Nickname string `json:"nickname" dc:"昵称"`
}

UserAdminInviteAddItem 添加管理员邀请属性

type UserAdminSaveItem

type UserAdminSaveItem struct {
	entity.UserAdmin
	DepartId []uint `json:"depart_id" dc:"部门ID"`
	PermId   []uint `json:"perm_id" dc:"权限ID"`
}

UserAdminSaveItem 保存管理员用户信息

type UserAdminWhereItem

type UserAdminWhereItem struct {
	ManageName    string `json:"manage_name" dc:"管理员名"`
	ManageNo      string `json:"manage_no" dc:"管理员编号"`
	IsSuperManage int    `json:"is_super_manage" dc:"是否超管"`
	ManageStatus  int    `json:"manage_status" dc:"管理员状态"`
}

UserAdminWhereItem 管理员搜索条件属性

type UserAvailablePGCoinItem added in v1.0.5

type UserAvailablePGCoinItem struct {
	Id                 uint `json:"id" dc:"账单ID"`
	AvailablePanguCoin uint `json:"available_pangu_coin" dc:"可用盘古币数量"`
}

UserAvailablePGCoinItem 用户可用盘古币账单明细属性

type UserAvailablePGCoinListOutput added in v1.0.5

type UserAvailablePGCoinListOutput struct {
	TotalPGCoin uint                      `json:"total_pg_coin" dc:"可用盘古币总数"`
	Rows        []UserAvailablePGCoinItem `json:"rows" dc:"数据列表"`
}

UserAvailablePGCoinListOutput 获取用户可用盘古币账单列表输出结果

type UserBasicDetailItem

type UserBasicDetailItem struct {
	Nickname string `json:"nickname" dc:"昵称"`
	UserId   uint   `json:"user_id" dc:"用户ID"`
	Sex      uint   `json:"sex" dc:"性别"`
	Birthday string `json:"birthday" dc:"生日"`
	Avatar   string `json:"avatar" dc:"头像"`
	AttachId string `json:"attach_id" dc:"附件ID"`
	SignNum  uint   `json:"sign_num" dc:"签到总数"`
	ConNum   uint   `json:"con_num" dc:"联系签到次数"`
}

UserBasicDetailItem 用户基础详情属性

type UserDetailItem

type UserDetailItem struct {
	Uid uint `json:"uid" dc:"用户ID"`
	UserAccountNameItem
	Detail UserBasicDetailItem `json:"detail" dc:"用户详情"`
}

UserDetailItem 用户详情属性

type UserDeviceBasicItem

type UserDeviceBasicItem struct {
	Id         uint   `json:"id" dc:"设备ID"`
	UserId     uint   `json:"user_id" dc:"用户ID"`
	IsDisabled uint   `json:"is_disabled" dc:"设备禁用"`
	DeviceHash string `json:"device_hash" dc:"设备Hash值"`
}

UserDeviceBasicItem 获取用户设备Hash和设备ID

type UserDeviceLoginAfterItem

type UserDeviceLoginAfterItem struct {
	*entity.UserDevice
	IsNewDevice bool `json:"is_new" dc:"是否新设备:false否,true新设备"`
}

UserDeviceLoginAfterItem 用户登录认证-用户设备后置处理

type UserDeviceUserAgentItem

type UserDeviceUserAgentItem struct {
	UserAgent  string `json:"user_agent" dc:"请求头"`
	DeviceType string `json:"device_type" dc:"设备类型"`
	DeviceName string `json:"device_name" dc:"设备名称"`
	Mac        string `json:"mac" dc:"MAC地址"`
}

UserDeviceUserAgentItem 通过用户请求UserAgent获取设备信息

type UserForgotPwdSendCaptchaInput

type UserForgotPwdSendCaptchaInput struct {
	Mobile string `json:"mobile" dc:"手机号-加密后"`
	UserOauthLoginSignItem
}

UserForgotPwdSendCaptchaInput 找回密码-发送短信验证码

type UserForgotPwdUpdatePwdInput

type UserForgotPwdUpdatePwdInput struct {
	Pwd string `json:"pwd" dc:"密码"`
}

UserForgotPwdUpdatePwdInput 找回密码-修改密码

type UserForgotPwdValidateCaptchaInput

type UserForgotPwdValidateCaptchaInput struct {
	Code string `json:"code" dc:"短信验证码"`
}

UserForgotPwdValidateCaptchaInput 找回密码-校验发送短信验证码

type UserLoginAfterItem

type UserLoginAfterItem struct {
	UserOauthAfterValidateItem
	UserOauthLoginItem
}

UserLoginAfterItem 用户认证-后置登录日志处理

type UserLoginCurrLoginItem

type UserLoginCurrLoginItem struct {
	ExpireTime  uint `json:"expire_time"`
	Status      uint `json:"status"`
	IsUse       uint `json:"is_use"`
	IsNewDevice uint `json:"is_new_device"`
}

UserLoginCurrLoginItem 获取当前用户登录信息

type UserLoginDeviceItem

type UserLoginDeviceItem struct {
	UserLoginForceOfflineItem
	LoginDeviceAttrItem
}

UserLoginDeviceItem 用户登陆设备属性

type UserLoginForceOfflineItem

type UserLoginForceOfflineItem struct {
	Id     uint   `json:"id" dc:"设备ID"`
	UserId uint   `json:"user_id" dc:"用户ID"`
	Token  string `json:"token" dc:"登录Token"`
	UserLoginCurrLoginItem
}

UserLoginForceOfflineItem 强制登录账户下线

type UserLoginSendSmsCaptchaInput

type UserLoginSendSmsCaptchaInput struct {
	UserOauthSendSmsCaptchaItem
	UserOauthLoginSignItem
}

UserLoginSendSmsCaptchaInput 用户授权登录发送短信验证码

type UserOauthAccountLoginItem

type UserOauthAccountLoginItem struct {
	Account string `json:"account" dc:"登录账户"`
	Pwd     string `json:"pwd" dc:"登录密码"`
}

UserOauthAccountLoginItem 用户认证账户密码登录属性

type UserOauthAfterItem

type UserOauthAfterItem struct {
	Detail *UserOauthLoginDetailItem `json:"detail" dc:"用户认证授权登录基础详情属性"`
	Other  *UserOauthOtherParam      `json:"other" dc:"用户认证其他参数"`
}

UserOauthAfterItem 用户认证后置数据属性

type UserOauthAfterValidateItem

type UserOauthAfterValidateItem struct {
	UserOauthLoginDetailItem
	UserDeviceLoginAfterItem
}

UserOauthAfterValidateItem 用户认证后置验证登录信息

type UserOauthLoginDetailItem

type UserOauthLoginDetailItem struct {
	*entity.User
	Status enums.UserLoginStatus `json:"status" dc:"登录状态:0正常,1待设置密码,2待绑定手机号,3新设备"`
}

UserOauthLoginDetailItem 用户认证授权登录基础详情属性

type UserOauthLoginInput

type UserOauthLoginInput struct {
	UserOauthAccountLoginItem
	UserOauthSmsLoginItem
	UserOauthLoginSignItem
	*UserOauthOtherParam
	Oauth enums.UserOauth `json:"oauth" dc:"登录授权类型"`
}

UserOauthLoginInput 用户认证登录授权请求参数

type UserOauthLoginItem

type UserOauthLoginItem struct {
	*jwt.TokenItem
	Status enums.UserLoginStatus `json:"status" dc:"登录状态:0正常,1待绑定账户,2待绑定手机号,3新设备"`
}

UserOauthLoginItem 用户认证登录授权属性

type UserOauthLoginOutput

type UserOauthLoginOutput struct {
	UserOauthLoginItem
}

UserOauthLoginOutput 用户认证登录授权响应参数

type UserOauthLoginSignItem

type UserOauthLoginSignItem struct {
	Sign string `json:"sign" dc:"登录签名"`
}

UserOauthLoginSignItem 用户认证登录签名属性

type UserOauthOtherParam

type UserOauthOtherParam struct {
	InviteToken string `json:"invite_token" dc:"邀请用户Token,例如管理员邀请注册等"`
}

UserOauthOtherParam 用户认证其他参数

type UserOauthSendSmsCaptchaItem

type UserOauthSendSmsCaptchaItem struct {
	Mobile string `json:"mobile" dc:"手机号-加密后"`
}

UserOauthSendSmsCaptchaItem 用户认证登录发送短信验证码

type UserOauthSmsLoginItem

type UserOauthSmsLoginItem struct {
	UserOauthSendSmsCaptchaItem
	Code string `json:"code" dc:"短信验证码"`
}

UserOauthSmsLoginItem 用户认证短信验证码登录

type UserSaveUserDetailItem

type UserSaveUserDetailItem struct {
	*entity.User
	entity.UserDetail
	entity.UserFunds
}

UserSaveUserDetailItem 保存用户信息属性,添加或编辑

type UserUpdateDetailInput

type UserUpdateDetailInput struct {
	UserUpdateDetailItem
}

UserUpdateDetailInput 用户修改用户详情请求参数

type UserUpdateDetailItem

type UserUpdateDetailItem struct {
	Sex      uint   `json:"sex" dc:"性别"`
	Birthday string `json:"birthday" dc:"生日"`
	AttachId string `json:"attach_id" dc:"附件ID"`
	Nickname string `json:"nickname" dc:"昵称"`
}

UserUpdateDetailItem 用户详情修改

type UserUpdatePwdInput

type UserUpdatePwdInput struct {
	UserUpdatePwdItem
}

UserUpdatePwdInput 用户-修改密码请求参数

type UserUpdatePwdItem

type UserUpdatePwdItem struct {
	Pwd  string `json:"pwd" dc:"密码"`
	Code string `json:"code" dc:"验证码"`
}

UserUpdatePwdItem 用户修改密码

type VideoActionAttrItem added in v1.0.1

type VideoActionAttrItem struct {
	IsBest      uint `json:"is_best" dc:"是否精品剧:0否,1是"`
	IsTop       uint `json:"is_top" dc:"是否置顶:0否,1是"`
	IsHot       uint `json:"is_hot" dc:"是否热播:0否,1是"`
	IsNew       uint `json:"is_new" dc:"是否新片:0否,1是"`
	IsRecommend uint `json:"is_recommend" dc:"是否推荐:0否,1是"`
	FeeType     uint `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
}

VideoActionAttrItem 视频操作属性

type VideoAuthAttrItem added in v1.0.1

type VideoAuthAttrItem struct {
	Id        uint   `json:"id" dc:"视频ID"`
	VideoNo   string `json:"video_no" dc:"视频编号"`
	VideoName string `json:"video_name" dc:"视频名"`
	FeeType   int    `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
}

VideoAuthAttrItem 视频基础信息验证属性

type VideoBasicItem added in v1.0.1

type VideoBasicItem struct {
	Id          uint   `json:"id" dc:"视频ID"`
	VideoNo     string `json:"video_no" dc:"视频编号"`
	VideoName   string `json:"video_name" dc:"视频名"`
	Keywords    string `json:"keywords" dc:"关键词"`
	CateId1     uint   `json:"cate_id1" dc:"一级分类"`
	CateId2     uint   `json:"cate_id2" dc:"二级分类"`
	Region      string `json:"region" dc:"上映地区"`
	YearDate    string `json:"year_date" dc:"上映年份"`
	ReleaseDate string `json:"release_date" dc:"上映时间"`
	FeeType     int    `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
	ImageUrl    string `json:"image_url" dc:"视频海报"`
}

VideoBasicItem 视频基础信息

type VideoBillDetailOutput added in v1.0.6

type VideoBillDetailOutput struct {
	VideoBuyBillDetailItem
	EpisodesList []*entity.VideoBuyEpisodes `json:"episodes_list" dc:"购买剧集列表"`
}

VideoBillDetailOutput 获取视频账单详情输出结果

type VideoBillRefundItem added in v1.0.5

type VideoBillRefundItem struct {
	VideoBuyBillItem
	VideoBuyBillCoinItem
	Remark string `json:"remark" dc:"备注"`
}

VideoBillRefundItem 视频账单退款详情

type VideoBuyAuthItem added in v1.0.1

type VideoBuyAuthItem struct {
	Id                uint          `json:"id" dc:"视频购买ID"`
	CompletePanguCoin uint          `json:"complete_pangu_coin" dc:"全集购买盘古币"`
	AddPanguCoin      uint          `json:"add_pangu_coin" dc:"累计消费盘古币"`
	MorePanguCoin     uint          `json:"more_pangu_coin" dc:"剩余购买盘古币"`
	DiscountRate      float64       `json:"discount_rate" dc:"折扣比例=全集购买盘古币 /(单集盘古币数量 * 全集数)"`
	Status            uint          `json:"status" dc:"购买状态:0购买中,1已购买全集"`
	BuyEpisodesResult map[uint]bool `json:"buy_episodes_result" dc:"购买集数结果"`
}

VideoBuyAuthItem 视频购买授权属性

type VideoBuyBillAttrItem added in v1.0.5

type VideoBuyBillAttrItem struct {
	Content  string `json:"content" dc:"购买集数内容"`
	RefundAt string `json:"refund_at" dc:"退款时间"`
	Remark   string `json:"remark" dc:"备注"`
}

VideoBuyBillAttrItem 视频购买账单属性

type VideoBuyBillCoinItem added in v1.0.5

type VideoBuyBillCoinItem struct {
	BuyEpisodesNum  uint `json:"buy_episodes_num" dc:"本次购买剧集数"`
	BuyPanguCoin    uint `json:"buy_pangu_coin" dc:"支付盘古币"`
	RefundPanguCoin uint `json:"refund_pangu_coin" dc:"退款盘古币"`
}

VideoBuyBillCoinItem 视频购买账单盘古币属性

type VideoBuyBillDetailItem added in v1.0.6

type VideoBuyBillDetailItem struct {
	VideoBuyBillItem
	VideoBuyBillCoinItem
	VideoBuyBillAttrItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

VideoBuyBillDetailItem 视频账单详情熟悉

type VideoBuyBillItem added in v1.0.5

type VideoBuyBillItem struct {
	Id     uint `json:"id" dc:"账单ID"`
	BuyId  uint `json:"buy_id" dc:"视频购买ID"`
	Uid    uint `json:"uid" dc:"用户ID"`
	Status int  `json:"status" dc:"状态:0已购买,1已退款, 2部分退款"`
	Type   int  `json:"type" dc:"类型:0单集购买,1全集购买,2余集买断"`
}

VideoBuyBillItem 视频购买账单属性

type VideoBuyBillListItem added in v1.0.5

type VideoBuyBillListItem struct {
	VideoBuyBillItem
	VideoBuyBillCoinItem
	VideoBuyBillAttrItem
	CreateAt string `json:"create_at" dc:"创建时间"`
}

VideoBuyBillListItem 视频列表账单列表属性

type VideoBuyBillListWhere added in v1.0.5

type VideoBuyBillListWhere struct {
	BuyId uint `json:"buy_id" dc:"视频购买ID"`
	Uid   uint `json:"uid" dc:"用户ID"`
}

VideoBuyBillListWhere 视频购买账单列表搜索条件

type VideoBuyCoinItem added in v1.0.5

type VideoBuyCoinItem struct {
	CompletePanguCoin uint `json:"complete_pangu_coin" dc:"全集购买盘古币"`
	AddPanguCoin      uint `json:"add_pangu_coin" dc:"累计消费盘古币"`
}

VideoBuyCoinItem 视频购买盘古币数据

type VideoBuyDetailItem added in v1.0.5

type VideoBuyDetailItem struct {
	VideoBuyItem
	VideoBuyCoinItem
}

VideoBuyDetailItem 视频购买详情属性

type VideoBuyDetailOutput added in v1.0.5

type VideoBuyDetailOutput struct {
	VideoBuyDetailItem
	BillList []VideoBuyBillListItem `json:"bill_list" dc:"账单列表"`
}

VideoBuyDetailOutput 视频购买详情输出结果

type VideoBuyEpisodesAuthItem added in v1.0.1

type VideoBuyEpisodesAuthItem struct {
	VideoId     uint `json:"video_id" dc:"视频ID"`
	EpisodesId  uint `json:"episodes_id" dc:"视频续集ID"`
	EpisodesNum uint `json:"episodes_num" dc:"集数"`
}

VideoBuyEpisodesAuthItem 用户购买续集结果授权属性

type VideoBuyEpisodesItem added in v1.0.5

type VideoBuyEpisodesItem struct {
	Id           uint   `json:"id" dc:"视频购买单集ID"`
	VideoId      uint   `json:"video_id" dc:"视频ID"`
	EpisodesId   uint   `json:"episodes_id" dc:"视频续集ID"`
	EpisodesName string `json:"episodes_name" dc:"剧集名"`
	EpisodesNum  uint   `json:"episodes_num" dc:"集数"`
}

VideoBuyEpisodesItem 视频购买剧集属性

type VideoBuyEpisodesWhereItem added in v1.0.5

type VideoBuyEpisodesWhereItem struct {
	Uid        uint   `json:"uid" dc:"用户ID"`
	VideoId    uint   `json:"video_id" dc:"视频ID"`
	EpisodesId []uint `json:"episodes_id" dc:"续集ID"`
	BuyId      uint   `json:"buy_id" dc:"购买ID"`
	BillId     []uint `json:"bill_id" dc:"视频购买账单ID"`
}

VideoBuyEpisodesWhereItem 视频购买剧集搜索条件属性

type VideoBuyItem added in v1.0.5

type VideoBuyItem struct {
	Id        uint   `json:"id" dc:"视频购买ID"`
	Uid       uint   `json:"uid" dc:"用户ID"`
	VideoId   uint   `json:"video_id" dc:"视频ID"`
	BuyNo     string `json:"buy_no" dc:"购买编号"`
	VideoName string `json:"video_name" dc:"视频名"`
	Status    uint   `json:"status" dc:"购买状态:0购买中,1已购买全集"`
}

VideoBuyItem 视频购买信息

type VideoBuyListInput added in v1.0.5

type VideoBuyListInput struct {
	CommonPaginationItem
	CommonFormSideItem
	VideoBuyWhereItem
}

VideoBuyListInput 视频购买列表请求参数

type VideoBuyListItem added in v1.0.5

type VideoBuyListItem struct {
	VideoBuyItem
	VideoBuyCoinItem
	UpdateAt string `json:"update_at" dc:"更新时间"`
}

VideoBuyListItem 视频购买列表属性

type VideoBuyListOutput added in v1.0.5

type VideoBuyListOutput struct {
	CommonResponseItem
	Rows []VideoBuyListItem `json:"rows" dc:"数据列表"`
}

VideoBuyListOutput 视频购买列表结果输出

type VideoBuyWhereItem added in v1.0.5

type VideoBuyWhereItem struct {
	Uid       uint                 `json:"uid" dc:"用户ID"`
	VideoId   uint                 `json:"video_id" dc:"视频ID"`
	BuyNo     string               `json:"buy_no" dc:"购买编号"`
	VideoName string               `json:"video_name" dc:"视频名"`
	Status    enums.VideoBuyStatus `json:"status" dc:"购买状态:0购买中,1已购买全集"`
}

VideoBuyWhereItem 视频购买查询条件

type VideoCateAttrItem added in v1.0.1

type VideoCateAttrItem struct {
	CateId1 uint `json:"cate_id1" dc:"一级分类"`
	CateId2 uint `json:"cate_id2" dc:"二级分类"`
}

VideoCateAttrItem 视频分类属性

type VideoCategoryDetail added in v1.0.1

type VideoCategoryDetail struct {
	VideoCategoryItem
	Pid uint `json:"pid" dc:"视频父级ID"`
}

VideoCategoryDetail 获取视频分类详情

type VideoCategoryItem added in v1.0.1

type VideoCategoryItem struct {
	Id       uint   `json:"id" dc:"类目ID"`
	Name     string `json:"name" dc:"类目名"`
	TinyName string `json:"tiny_name" dc:"短标题"`
}

VideoCategoryItem 视频分类标签属性

type VideoCategoryLabelList added in v1.0.1

type VideoCategoryLabelList []VideoCategoryItem

VideoCategoryLabelList 视频分类标签列表

type VideoCategoryTreeItem added in v1.0.1

type VideoCategoryTreeItem struct {
	VideoCategoryItem
	Pid uint `json:"pid" dc:"视频父级ID"`
}

VideoCategoryTreeItem 视频分类树形熟悉

type VideoCategoryTreeList added in v1.0.1

type VideoCategoryTreeList []VideoCategoryTreeItem

VideoCategoryTreeList 获取视频分类树形列表

type VideoDetailAuthItem added in v1.0.1

type VideoDetailAuthItem struct {
	VideoAuthAttrItem
	AttributeAuthItem
}

VideoDetailAuthItem 获取视频详情授权属性

type VideoDetailInput added in v1.0.1

type VideoDetailInput struct {
	VideoId  uint           `json:"video_id" dc:"视频ID"`
	FormSide enums.FormSide `json:"form_side" dc:"平台端"`
}

VideoDetailInput 获取视频详情请求参数

type VideoDetailItem added in v1.0.1

type VideoDetailItem struct {
	VideoBasicItem
	Attribute    entity.VideoAttribute    `json:"attribute" dc:"视频属性"`
	Values       []VideoLabelItem         `json:"values" dc:"视频标签值"`
	PersonalList []VideoPersonalBasicItem `json:"personal_list" dc:"视频相关参演人员列表"`
}

VideoDetailItem 视频详情属性

type VideoEpisodesAttrItem added in v1.0.1

type VideoEpisodesAttrItem struct {
	ResolutionSet string `json:"resolution_set" dc:"清晰度集合"`
	PlayNum       uint   `json:"play_num" dc:"集数播放数量"`
}

VideoEpisodesAttrItem 视频续集属性

type VideoEpisodesBasicItem added in v1.0.1

type VideoEpisodesBasicItem struct {
	Id           uint   `json:"id" dc:"续集ID"`
	VideoId      uint   `json:"video_id" dc:"视频ID"`
	AttachId     string `json:"attach_id" dc:"附件ID"`
	ImageUrl     string `json:"image_url" dc:"续集推广图"`
	EpisodesName string `json:"episodes_name" dc:"续集名"`
	Synopsis     string `json:"synopsis" dc:"续集简介"`
	EpisodesNum  uint   `json:"episodes_num" dc:"当前集数编号"`
}

VideoEpisodesBasicItem 视频续集基础属性

type VideoEpisodesBuyItem added in v1.0.5

type VideoEpisodesBuyItem struct {
	Id           uint   `json:"id" dc:"续集ID"`
	EpisodesName string `json:"episodes_name" dc:"续集名"`
	EpisodesNum  uint   `json:"episodes_num" dc:"当前集数编号"`
}

VideoEpisodesBuyItem 视频剧集购买属性

type VideoEpisodesDetailItem added in v1.0.1

type VideoEpisodesDetailItem struct {
	VideoEpisodesBasicItem
	VideoEpisodesAttrItem
	ResolutionList []VideoResolutionListItem `json:"resolution_list" dc:"清晰度列表"`
}

VideoEpisodesDetailItem 视频续集详情属性

type VideoEpisodesExtAttrItem added in v1.0.1

type VideoEpisodesExtAttrItem struct {
	IsPlay    uint `json:"is_play" dc:"是否已播放:0未播放,1已播放或播放中"`
	IsBuy     uint `json:"is_buy" dc:"是否购买:0否,1已购买"`
	IsDisable bool `json:"is_disable" dc:"是否禁止播放:false允许,true禁止"`
}

VideoEpisodesExtAttrItem 视频续集额外属性

type VideoEpisodesId added in v1.0.1

type VideoEpisodesId struct {
	Id uint `json:"id" dc:"续集ID"`
}

VideoEpisodesId 获取视频续集ID

type VideoEpisodesListInput added in v1.0.1

type VideoEpisodesListInput struct {
	VideoId  uint           `json:"video_id" dc:"视频ID"`
	FormSide enums.FormSide `json:"form_side" dc:"平台端"`
}

VideoEpisodesListInput 获取视频续集列表请求参数

type VideoEpisodesListItem added in v1.0.1

type VideoEpisodesListItem struct {
	VideoEpisodesBasicItem
	VideoEpisodesExtAttrItem
	ResolutionList []VideoResolutionListItem `json:"resolution_list" dc:"清晰度列表"`
}

VideoEpisodesListItem 视频续集列表属性

type VideoEpisodesListOutput added in v1.0.1

type VideoEpisodesListOutput struct {
	CommonResponseItem
	Rows []VideoEpisodesListItem `json:"rows" dc:"视频续集列表"`
}

VideoEpisodesListOutput 视频续集列表输出结果

type VideoEpisodesSaveItem added in v1.0.1

type VideoEpisodesSaveItem struct {
	entity.VideoEpisodes
	ResolutionList []*VideoResolutionSaveItem `json:"resolution_list" dc:"视频清晰度列表"`
}

VideoEpisodesSaveItem 添加|编辑视频续集列表属性

type VideoLabelItem added in v1.0.1

type VideoLabelItem struct {
	VideoId uint   `json:"video_id" dc:"视频ID"`
	Value   string `json:"value" dc:"标签值"`
}

VideoLabelItem 是否标签ID

type VideoListInput added in v1.0.1

type VideoListInput struct {
	CommonPaginationItem
	VideoWhereItem
	By uint16 `json:"by" dc:"排序类型:0默认置顶>推荐>热播>ID,1按播放量>默认排序,2按评分>默认排序"`
}

VideoListInput 获取视频列表请求参数

type VideoListItem added in v1.0.1

type VideoListItem struct {
	Id        uint   `json:"id" dc:"视频ID"`
	VideoNo   string `json:"video_no" dc:"视频编号"`
	VideoName string `json:"video_name" dc:"视频名"`
	VideoCateAttrItem
	Region      string `json:"region" dc:"上映地区"`
	YearDate    string `json:"year_date" dc:"上映年份"`
	ReleaseDate string `json:"release_date" dc:"上映时间"`
	FeeType     int    `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
	ImageUrl    string `json:"image_url" dc:"视频海报"`
	VideoActionAttrItem
	VideoNumAttrItem
	VideoStatusAttrItem
}

VideoListItem 视频列表属性

type VideoListOutput added in v1.0.1

type VideoListOutput struct {
	CommonResponseItem
	Rows []VideoListItem `json:"rows" dc:"数据列表"`
}

VideoListOutput 获取视频列表输出结果

type VideoNumAttrItem added in v1.0.1

type VideoNumAttrItem struct {
	Browse   uint    `json:"browse" dc:"浏览量"`
	PlayNum  uint    `json:"play_num" dc:"播放量"`
	Collect  uint    `json:"collect" dc:"收藏量"`
	ShareNum uint    `json:"share_num" dc:"分享数量"`
	Score    float64 `json:"score" dc:"评分"`
}

VideoNumAttrItem 视频量属性

type VideoPersonalBasicItem added in v1.0.1

type VideoPersonalBasicItem struct {
	Id       uint   `json:"id" dc:"视频相关人员ID"`
	VideoId  uint   `json:"video_id" dc:"视频ID"`
	ActorsId uint   `json:"actors_id" dc:"演员ID"`
	Name     string `json:"name" dc:"参演名"`
	Type     uint   `json:"type" dc:"角色类型:0导演,1副导演,2领衔主演,3主演,4客串嘉宾,5其他"`
	Portray  string `json:"portray" dc:"饰演角色"`
	IsShow   uint   `json:"is_show" dc:"是否展示:0展示,1隐藏"`
}

VideoPersonalBasicItem 视频相关参演人员基础属性

type VideoPlayAuthItem added in v1.0.1

type VideoPlayAuthItem struct {
	Id uint `json:"id" dc:"视频播放ID"`
	VideoPlayCurrAttrItem
	PlaySequelResult map[uint]bool `json:"play_sequel_result" dc:"播放续集结果"`
}

VideoPlayAuthItem 视频播放授权属性

type VideoPlayBasicItem added in v1.0.1

type VideoPlayBasicItem struct {
	Id         uint   `json:"id" dc:""`
	VideoId    uint   `json:"video_id" dc:"视频ID"`
	Resolution string `json:"resolution" dc:"清晰度"`
}

VideoPlayBasicItem 视频播放基础信息

type VideoPlayCurrAttrItem added in v1.0.1

type VideoPlayCurrAttrItem struct {
	CurrPlayRate   uint   `json:"curr_play_rate" dc:"当前播放进度"`
	CurrPlayTime   uint   `json:"curr_play_time" dc:"当前播放时间"`
	CurrPlaySequel uint   `json:"curr_play_sequel" dc:"当前播放续集"`
	Resolution     string `json:"resolution" dc:"播放精度"`
}

VideoPlayCurrAttrItem 当前视频播放属性

type VideoPlayEpisodesOutput added in v1.0.1

type VideoPlayEpisodesOutput struct {
	*VideoDetailAuthItem
	BuyDetail    *VideoBuyAuthItem       `json:"buy_detail" dc:"视频购买信息"`
	PlayDetail   VideoPlayAuthItem       `json:"play_detail" dc:"视频播放信息"`
	EpisodesList []VideoEpisodesListItem `json:"episodes_list" dc:"视频续集列表"`
}

VideoPlayEpisodesOutput 用户业务端-视频播放续集详情输出结果

type VideoPlayHistoryItem added in v1.0.1

type VideoPlayHistoryItem struct {
	Id      uint `json:"play_id" dc:"视频播放ID"`
	VideoId uint `json:"video_id" dc:"视频ID"`
	VideoPlayCurrAttrItem
}

VideoPlayHistoryItem 用户视频播放历史属性

type VideoPlayHistoryListItem added in v1.0.1

type VideoPlayHistoryListItem struct {
	VideoPlayHistoryItem
	VideoPlayListItem
}

VideoPlayHistoryListItem 获取用户视频播放历史列表属性

type VideoPlayHistoryListOutput added in v1.0.1

type VideoPlayHistoryListOutput struct {
	CommonResponseItem
	Rows []VideoPlayHistoryListItem `json:"rows" dc:"数据列表"`
}

VideoPlayHistoryListOutput 获取用户视频播放历史列表结果输出

type VideoPlayHistorySaveInput added in v1.0.1

type VideoPlayHistorySaveInput struct {
	VideoId      uint   `json:"video_id" dc:"视频ID"`
	EpisodesId   uint   `json:"episodes_id" dc:"视频续集ID"`
	CurrPlayTime uint   `json:"curr_play_time" dc:"当前播放时间"`
	Resolution   string `json:"resolution" dc:"清晰度"`
}

VideoPlayHistorySaveInput 保存用户视频播放记录请求参数

type VideoPlayListItem added in v1.0.1

type VideoPlayListItem struct {
	VideoName string `json:"video_name" dc:"视频名"`
	FeeType   int    `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
	ImageUrl  string `json:"image_url" dc:"视频海报"`
	VideoNumAttrItem
	VideoStatusAttrItem
}

VideoPlayListItem 用户视频播放视频列表属性

type VideoPlaySequelBasicItem added in v1.0.1

type VideoPlaySequelBasicItem struct {
	Id            uint   `json:"id" dc:"播放续集ID"`
	PlayId        uint   `json:"play_id" dc:"播放ID"`
	VideoSequelId uint   `json:"video_sequel_id" dc:"视频续集ID"`
	Resolution    string `json:"resolution" dc:"视频清晰度"`
}

VideoPlaySequelBasicItem 视频播放续集基础属性

type VideoPlaySequelResultItem added in v1.0.1

type VideoPlaySequelResultItem struct {
	VideoSequelId uint   `json:"video_sequel_id" dc:"视频续集ID"`
	CurrPlayRate  uint   `json:"curr_play_rate" dc:"当前播放进度"`
	CurrPlayTime  uint   `json:"curr_play_time" dc:"当前播放时间"`
	PlaySequel    uint   `json:"play_sequel" dc:"视频集数"`
	Resolution    string `json:"resolution" dc:"视频清晰度"`
}

VideoPlaySequelResultItem 视频播放续集结果属性

type VideoPlayUrlInput added in v1.0.5

type VideoPlayUrlInput struct {
	VideoNo    string `json:"video_no" dc:"视频编号"`
	EpisodesId uint   `json:"episodes_id" dc:"剧集ID"`
}

VideoPlayUrlInput 获取视频播放地址

type VideoPlayUrlOutput added in v1.0.5

type VideoPlayUrlOutput struct {
	Shuffle        string                    `json:"shuffle" dc:"随机数"`
	ResolutionList []VideoResolutionListItem `json:"resolution_list" dc:"清晰度列表"`
}

VideoPlayUrlOutput 视频播放地址输出结果

type VideoResolutionAttrItem added in v1.0.1

type VideoResolutionAttrItem struct {
	VideoUrl       string `json:"video_url" dc:"视频地址"`
	MimeType       string `json:"mime_type" dc:"视频类型"`
	Size           uint   `json:"size" dc:"视频大小"`
	Duration       uint   `json:"duration" dc:"时长(S)"`
	DurationString string `json:"duration_string" dc:"格式化时长"`
}

VideoResolutionAttrItem 视频清晰度属性

type VideoResolutionBasicItem added in v1.0.1

type VideoResolutionBasicItem struct {
	Id         uint   `json:"id" dc:"清晰度ID"`
	EpisodesId uint   `json:"episodes_id" dc:"视频续集ID"`
	Resolution string `json:"resolution" dc:"视频清晰度"`
	AttachId   string `json:"attach_id" dc:"附件ID"`
}

VideoResolutionBasicItem 视频清晰度基础属性

type VideoResolutionListItem added in v1.0.1

type VideoResolutionListItem struct {
	VideoResolutionBasicItem
	VideoResolutionAttrItem
}

VideoResolutionListItem 视频清晰度列表属性

type VideoResolutionSaveItem added in v1.0.1

type VideoResolutionSaveItem struct {
	VideoResolutionBasicItem
}

VideoResolutionSaveItem 视频清晰度添加|编辑属性

type VideoSaveItem added in v1.0.1

type VideoSaveItem struct {
	VideoBasicItem
	Values []string `json:"values" dc:"标签值"`
	entity.VideoAttribute
}

VideoSaveItem 添加编辑保存视频基础信息

type VideoStatusAttrItem added in v1.0.1

type VideoStatusAttrItem struct {
	Status    uint `json:"status" dc:"视频状态:0待审核,1审核通过,2驳回申请,3违规下架"`
	IsRelease uint `json:"is_release" dc:"是否发布:0未发布,1已发布"`
}

VideoStatusAttrItem 视频状态属性

type VideoUserActionsAttrItem added in v1.0.1

type VideoUserActionsAttrItem struct {
	IsCollect bool `json:"is_collect" dc:"是否收藏:false否,true是"`
	IsLike    bool `json:"is_like" dc:"是否点赞:false否,true是"`
	IsTread   bool `json:"is_tread" dc:"是否踩:false否,true是"`
}

VideoUserActionsAttrItem 用户视频操作属性

type VideoUserActionsBasicItem added in v1.0.1

type VideoUserActionsBasicItem struct {
	VideoId uint   `json:"video_id" dc:"视频ID"`
	Type    string `json:"type" dc:"视频操作类型"`
}

VideoUserActionsBasicItem 用户视频操作基础属性

type VideoUserListItem added in v1.0.1

type VideoUserListItem struct {
	Id        uint   `json:"id" dc:"视频ID"`
	VideoName string `json:"video_name" dc:"视频名"`
	FeeType   int    `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
	ImageUrl  string `json:"image_url" dc:"视频海报"`
	VideoNumAttrItem
	VideoStatusAttrItem
}

VideoUserListItem 用户视频列表(播放、收藏、点赞)

type VideoUserListOutput added in v1.0.1

type VideoUserListOutput struct {
	CommonResponseItem
	Rows []VideoUserListItem `json:"rows" dc:"数据列表"`
}

VideoUserListOutput 用户视频列表输出结果

type VideoWhereItem added in v1.0.1

type VideoWhereItem struct {
	VideoNo     string   `json:"video_no" dc:"视频编号"`
	Keywords    string   `json:"keywords" dc:"关键词"`
	CateId1     uint     `json:"cate_id1" dc:"一级分类"`
	CateId2     uint     `json:"cate_id2" dc:"二级分类"`
	Region      string   `json:"region" dc:"上映地区"`
	YearDate    string   `json:"year_date" dc:"上映年份"`
	FeeType     int      `json:"fee_type" dc:"收费类型:0免费,1VIP付费"`
	Label       []string `json:"label" dc:"标签值"`
	IsBest      int      `json:"is_best" dc:"是否精品剧"`
	IsTop       int      `json:"is_top" dc:"是否置顶"`
	IsHot       int      `json:"is_hot" dc:"是否热播"`
	IsNew       int      `json:"is_new" dc:"是否新片"`
	IsRecommend int      `json:"is_recommend" dc:"是否推荐"`
	Status      int      `json:"status" dc:"状态"`
	IsRelease   int      `json:"is_release" dc:"是否发布"`
}

VideoWhereItem 视频搜索条件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL