Create & Init Project...
This commit is contained in:
33
app/service/live/xlottery/model/BUILD
Normal file
33
app/service/live/xlottery/model/BUILD
Normal file
@ -0,0 +1,33 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_go//go:def.bzl",
|
||||
"go_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
"beats.go",
|
||||
"model.go",
|
||||
"shield_keywork.go",
|
||||
"special_gift.go",
|
||||
],
|
||||
importpath = "go-common/app/service/live/xlottery/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"],
|
||||
)
|
15
app/service/live/xlottery/model/beats.go
Normal file
15
app/service/live/xlottery/model/beats.go
Normal file
@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// Beat ap_user_beats_info
|
||||
type Beat struct {
|
||||
ID int64 `json:"id"`
|
||||
UID int64 `json:"uid"`
|
||||
Content string `json:"content"`
|
||||
Status int `json:"status"`
|
||||
Operator string `json:"operator"`
|
||||
UpdateTime time.Time `json:"update_time"`
|
||||
Ctime time.Time `json:"ctime"`
|
||||
Mtime time.Time `json:"mtime"`
|
||||
}
|
85
app/service/live/xlottery/model/model.go
Normal file
85
app/service/live/xlottery/model/model.go
Normal file
@ -0,0 +1,85 @@
|
||||
package model
|
||||
|
||||
// Coin .
|
||||
type Coin struct {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
GiftType int64 `json:"gift_type"`
|
||||
ChangeNum int64 `json:"change_num"`
|
||||
StartTime int64 `json:"start_time"`
|
||||
EndTime int64 `json:"end_time"`
|
||||
Status int64 `json:"status"`
|
||||
}
|
||||
|
||||
// CoinConfig .
|
||||
type CoinConfig struct {
|
||||
CoinId int64 `json:"coin_id"`
|
||||
Type int64 `json:"type"`
|
||||
AreaV2ParentId int64 `json:"area_v2_parent_id"`
|
||||
AreaV2Id int64 `json:"area_v2_id"`
|
||||
GiftId int64 `json:"gift_id"`
|
||||
IsAll int64 `json:"is_all"`
|
||||
}
|
||||
|
||||
// Pool .
|
||||
type Pool struct {
|
||||
Id int64 `json:"id"`
|
||||
CoinId int64 `json:"coin_id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
StartTime int64 `json:"start_time"`
|
||||
EndTime int64 `json:"end_time"`
|
||||
Status int64 `json:"status"`
|
||||
IsBottom int64 `json:"is_bottom"`
|
||||
}
|
||||
|
||||
// PoolPrize .
|
||||
type PoolPrize struct {
|
||||
Id int64 `json:"id"`
|
||||
PoolId int64 `json:"pool_id"`
|
||||
Type int64 `json:"type"`
|
||||
Num int64 `json:"num"`
|
||||
ObjectId int64 `json:"object_id"`
|
||||
Expire int64 `json:"expire"`
|
||||
WebUrl string `json:"web_url"`
|
||||
MobileUrl string `json:"mobile_url"`
|
||||
Description string `json:"description"`
|
||||
JumpUrl string `json:"jump_url"`
|
||||
ProType int64 `json:"pro_type"`
|
||||
Chance int64 `json:"chance"`
|
||||
LoopNum int64 `json:"loop_num"`
|
||||
LimitNum int64 `json:"limit_num"`
|
||||
Weight int64 `json:"Weight"`
|
||||
}
|
||||
|
||||
// PoolChance .
|
||||
type PoolChance struct {
|
||||
PrizeId int64 `json:"prize_id"`
|
||||
Type int64 `json:"type"`
|
||||
Chance string `json:"chance"`
|
||||
Loop int64 `json:"loop"`
|
||||
Limit int64 `json:"limit"`
|
||||
}
|
||||
|
||||
// PrizeLog .
|
||||
type PrizeLog struct {
|
||||
PrizeId int64 `json:"prize_id"`
|
||||
Uid int64 `json:"Uid"`
|
||||
Day string `json:"Day"`
|
||||
Timestamp int64 `json:"Timestamp"`
|
||||
}
|
||||
|
||||
// ExtraData .
|
||||
type ExtraData struct {
|
||||
Uid int64 `json:"uid"`
|
||||
Type string `json:"type"`
|
||||
ItemValue int64 `json:"item_value"`
|
||||
ItemExtra string `json:"item_extra"`
|
||||
Ctime string `json:"ctime"`
|
||||
Mtime string `json:"mtime"`
|
||||
}
|
||||
|
||||
// ObjIds .
|
||||
type ObjIds struct {
|
||||
ObjectId int64 `json:"object_id"`
|
||||
}
|
12
app/service/live/xlottery/model/shield_keywork.go
Normal file
12
app/service/live/xlottery/model/shield_keywork.go
Normal file
@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// ShieldKeyWork ShieldKeyWorks
|
||||
type ShieldKeyWork struct {
|
||||
ID int64 `json:"id"`
|
||||
UID int64 `json:"uid"`
|
||||
OriginalKeyword string `json:"origin_keyword"`
|
||||
KeyWord string `json:"keyword"`
|
||||
Ctime time.Time `json:"ctime"`
|
||||
}
|
15
app/service/live/xlottery/model/special_gift.go
Normal file
15
app/service/live/xlottery/model/special_gift.go
Normal file
@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// SpecialGift SpecialGift
|
||||
type SpecialGift struct {
|
||||
ID int64 `json:"id"`
|
||||
UID int64 `json:"uid"`
|
||||
GiftID int64 `json:"gift_id"`
|
||||
GiftNum int64 `json:"gift_num"`
|
||||
RoomID int64 `json:"room_id"`
|
||||
CreateTime time.Time `json:"create_time"`
|
||||
CustomField string `json:"custom_fields"`
|
||||
Status int `json:"status"`
|
||||
}
|
Reference in New Issue
Block a user