Create & Init Project...
This commit is contained in:
29
app/interface/main/app-card/model/bplus/BUILD
Normal file
29
app/interface/main/app-card/model/bplus/BUILD
Normal file
@ -0,0 +1,29 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_go//go:def.bzl",
|
||||
"go_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["bplus.go"],
|
||||
importpath = "go-common/app/interface/main/app-card/model/bplus",
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//library/time:go_default_library"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all-srcs",
|
||||
srcs = [":package-srcs"],
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
22
app/interface/main/app-card/model/bplus/bplus.go
Normal file
22
app/interface/main/app-card/model/bplus/bplus.go
Normal file
@ -0,0 +1,22 @@
|
||||
package bplus
|
||||
|
||||
import (
|
||||
xtime "go-common/library/time"
|
||||
)
|
||||
|
||||
// Picture struct
|
||||
type Picture struct {
|
||||
DynamicID int64 `json:"dynamic_id,omitempty"`
|
||||
PublishTime xtime.Time `json:"publish_time,omitempty"`
|
||||
Mid int64 `json:"mid,omitempty"`
|
||||
RidType int8 `json:"rid_type,omitempty"`
|
||||
Rid int64 `json:"rid,omitempty"`
|
||||
ImgCount int `json:"img_count,omitempty"`
|
||||
Imgs []string `json:"imgs,omitempty"`
|
||||
DynamicText string `json:"dynamic_text,omitempty"`
|
||||
ViewCount int64 `json:"view_count,omitempty"`
|
||||
Topics []string `json:"topics,omitempty"`
|
||||
NickName string `json:"nick_name,omitempty"`
|
||||
FaceImg string `json:"face_img,omitempty"`
|
||||
CommentCount int64 `json:"comment_count,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user