Create & Init Project...

This commit is contained in:
2019-04-22 18:49:16 +08:00
commit fc4fa37393
25440 changed files with 4054998 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"base.go",
"const.go",
],
importpath = "go-common/app/interface/bbq/common/model",
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"],
)

View File

@@ -0,0 +1,20 @@
package model
// Base .
type Base struct {
App string `json:"mobi_app" form:"mobi_app"`
Client string `json:"platform" form:"platform"`
Version string `json:"version" form:"version"`
Channel string `json:"channel" form:"channel"`
Location string `json:"location" form:"location"`
QueryID string `json:"query_id" form:"query_id"`
BUVID string `json:"buvid"`
SVID int `json:"svid" form:"svid"`
TotalDuration int `json:"total_duration" form:"total_duration"`
PlayDuration int `json:"duration" form:"duration"`
DataType int `json:"data_type" form:"data_type"`
From string `json:"from" form:"from"`
PFrom string `json:"pfrom" form:"pfrom"`
FromID string `json:"from_id" form:"from_id"`
PFromID string `json:"pfrom_id" form:"pfrom_id"`
}

View File

@@ -0,0 +1,27 @@
package model
// 接口Action定义
const (
ActionRecommend = iota
ActionPlay
ActionLike
ActionCancelLike
ActionFollow
ActionCancelFollow
ActionCommentAdd
ActionCommentLike
ActionCommentReport
ActionFeedList
ActionShare
ActionDanmaku
ActionPlayPause
ActionPushRegister
ActionPushSucced
ActionPushCallback
ActionBlack
ActionCancelBlack
ActionVideoSearch
ActionUserSearch
ActionUserUnLike
ActionPlayOut
)