Create & Init Project...
This commit is contained in:
28
app/interface/main/app-interface/model/history/BUILD
Normal file
28
app/interface/main/app-interface/model/history/BUILD
Normal file
@ -0,0 +1,28 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_go//go:def.bzl",
|
||||
"go_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["history.go"],
|
||||
importpath = "go-common/app/interface/main/app-interface/model/history",
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all-srcs",
|
||||
srcs = [":package-srcs"],
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
95
app/interface/main/app-interface/model/history/history.go
Normal file
95
app/interface/main/app-interface/model/history/history.go
Normal file
@ -0,0 +1,95 @@
|
||||
package history
|
||||
|
||||
// HisParam fro history
|
||||
type HisParam struct {
|
||||
MobiApp string `form:"mobi_app"`
|
||||
Device string `form:"device"`
|
||||
Build int64 `form:"build"`
|
||||
Platform string `form:"platform"`
|
||||
Pn int `form:"pn"`
|
||||
Ps int `form:"ps"`
|
||||
Mid int64 `form:"mid"`
|
||||
Max int64 `form:"max"`
|
||||
MaxTP int8 `form:"max_tp"`
|
||||
Business string `form:"business"`
|
||||
}
|
||||
|
||||
// LiveParam statue param
|
||||
type LiveParam struct {
|
||||
RoomIDs string `form:"room_ids"`
|
||||
}
|
||||
|
||||
// DelParam del param
|
||||
type DelParam struct {
|
||||
Mid int64 `form:"mid"`
|
||||
Boids []string `form:"boids,split" validate:"min=1"`
|
||||
}
|
||||
|
||||
// ClearParam clear param
|
||||
type ClearParam struct {
|
||||
Mid int64 `form:"mid"`
|
||||
Business string `form:"business"`
|
||||
}
|
||||
|
||||
// ListRes for history
|
||||
type ListRes struct {
|
||||
Title string `json:"title"`
|
||||
Covers []string `json:"covers,omitempty"`
|
||||
Cover string `json:"cover,omitempty"`
|
||||
URI string `json:"uri"`
|
||||
History struct {
|
||||
Oid int64 `json:"oid"`
|
||||
Tp int8 `json:"tp"`
|
||||
Cid int64 `json:"cid,omitempty"`
|
||||
Page int32 `json:"page,omitempty"`
|
||||
Part string `json:"part,omitempty"`
|
||||
Business string `json:"business"`
|
||||
} `json:"history"`
|
||||
Videos int64 `json:"videos,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Mid int64 `json:"mid,omitempty"`
|
||||
Goto string `json:"goto"`
|
||||
Badge string `json:"badge,omitempty"`
|
||||
ViewAt int64 `json:"view_at"`
|
||||
Progress int64 `json:"progress,omitempty"`
|
||||
Duration int64 `json:"duration,omitempty"`
|
||||
ShowTitle string `json:"show_title,omitempty"`
|
||||
TagName string `json:"tag_name,omitempty"`
|
||||
LiveStatus int `json:"live_status,omitempty"`
|
||||
Current string `json:"current,omitempty"`
|
||||
Total string `json:"total,omitempty"`
|
||||
NewDesc string `json:"new_desc,omitempty"`
|
||||
IsFinish int8 `json:"is_finish,omitempty"`
|
||||
}
|
||||
|
||||
// PGCRes for history
|
||||
type PGCRes struct {
|
||||
EpID int64 `json:"ep_id"`
|
||||
Cover string `json:"cover"`
|
||||
URI string `json:"uri"`
|
||||
Title string `json:"title"`
|
||||
ShowTitle string `json:"show_title"`
|
||||
Season struct {
|
||||
Title string `json:"title"`
|
||||
} `json:"season"`
|
||||
}
|
||||
|
||||
// ListCursor for history
|
||||
type ListCursor struct {
|
||||
Tab []*BusTab `json:"tab"`
|
||||
List []*ListRes `json:"list"`
|
||||
Cursor *Cursor `json:"cursor"`
|
||||
}
|
||||
|
||||
// BusTab business tab
|
||||
type BusTab struct {
|
||||
Business string `json:"business"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Cursor for history
|
||||
type Cursor struct {
|
||||
Max int64 `json:"max"`
|
||||
MaxTP int8 `json:"max_tp"`
|
||||
Ps int `json:"ps"`
|
||||
}
|
Reference in New Issue
Block a user