Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
1299dd30d3
@ -225,7 +225,7 @@
|
|||||||
],
|
],
|
||||||
"horoscope_reset_cost": {
|
"horoscope_reset_cost": {
|
||||||
"a": "attr",
|
"a": "attr",
|
||||||
"t": "starcion",
|
"t": "starcoin",
|
||||||
"n": 500
|
"n": 500
|
||||||
},
|
},
|
||||||
"horoscope_reset_cd": 86400
|
"horoscope_reset_cd": 86400
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": "1",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -15,7 +15,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": "2",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -30,7 +30,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": "3",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": "4",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -60,7 +60,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 5,
|
"id": "5",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -75,7 +75,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 6,
|
"id": "6",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -90,7 +90,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 7,
|
"id": "7",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -105,7 +105,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 8,
|
"id": "8",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 1,
|
"recharge_type": 1,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -120,7 +120,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 9,
|
"id": "9",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -135,7 +135,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 10,
|
"id": "10",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -150,7 +150,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 11,
|
"id": "11",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -165,7 +165,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 12,
|
"id": "12",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -180,7 +180,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 13,
|
"id": "13",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -195,7 +195,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": "14",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -210,7 +210,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 15,
|
"id": "15",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -225,7 +225,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 16,
|
"id": "16",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -240,7 +240,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 17,
|
"id": "17",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -255,7 +255,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 18,
|
"id": "18",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
@ -270,7 +270,7 @@
|
|||||||
"image": ""
|
"image": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 19,
|
"id": "19",
|
||||||
"editionid": "debug",
|
"editionid": "debug",
|
||||||
"recharge_type": 2,
|
"recharge_type": 2,
|
||||||
"monetaryunit": "¥",
|
"monetaryunit": "¥",
|
||||||
|
@ -57,12 +57,13 @@ func (l List) Less(i, j int) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Item struct {
|
type Item struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
Quantity int `json:"quantity"`
|
Quantity int `json:"quantity"`
|
||||||
Checked bool `json:"checked"`
|
Checked bool `json:"checked"`
|
||||||
Size int64 `json:"size"`
|
Size int64 `json:"size"`
|
||||||
|
Data interface{} `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewList(name string) List {
|
func NewList(name string) List {
|
||||||
|
@ -52,8 +52,8 @@ func (a *appTester) LazyInit(service service.PttService, obs observer.Observer)
|
|||||||
|
|
||||||
if view, ok := viewRegister[viewKey]; ok {
|
if view, ok := viewRegister[viewKey]; ok {
|
||||||
timeLbl := widget.NewLabel("time")
|
timeLbl := widget.NewLabel("time")
|
||||||
view.Init(service, obs, globalWin.w)
|
|
||||||
resLog := widget.NewMultiLineEntry()
|
resLog := widget.NewMultiLineEntry()
|
||||||
|
view.Init(service, obs, globalWin.w, resLog)
|
||||||
|
|
||||||
obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
||||||
OnNotify: func(data interface{}, args ...interface{}) {
|
OnNotify: func(data interface{}, args ...interface{}) {
|
||||||
|
@ -22,13 +22,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cast"
|
"github.com/spf13/cast"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MyCaseView interface {
|
type MyCaseView interface {
|
||||||
Init(service service.PttService, obs observer.Observer, w fyne.Window)
|
Init(service service.PttService, obs observer.Observer, w fyne.Window, res *widget.Entry)
|
||||||
CreateView(t *model.TestCase) fyne.CanvasObject
|
CreateView(t *model.TestCase) fyne.CanvasObject
|
||||||
Load()
|
Load()
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ type toyUserInfo struct {
|
|||||||
obs observer.Observer
|
obs observer.Observer
|
||||||
copyBtn *widget.Button
|
copyBtn *widget.Button
|
||||||
refreshBtn *widget.Button
|
refreshBtn *widget.Button
|
||||||
|
logoutBtn *widget.Button
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *toyUserInfo) Init(obs observer.Observer) error {
|
func (this *toyUserInfo) Init(obs observer.Observer) error {
|
||||||
@ -62,6 +63,17 @@ func (this *toyUserInfo) Init(obs observer.Observer) error {
|
|||||||
})
|
})
|
||||||
this.refreshBtn.Disable()
|
this.refreshBtn.Disable()
|
||||||
|
|
||||||
|
// 注销用户
|
||||||
|
this.logoutBtn = widget.NewButtonWithIcon("", theme.AccountIcon(), func() {
|
||||||
|
if err := service.GetPttService().SendToClient(
|
||||||
|
string(comm.ModuleUser),
|
||||||
|
user.UserSubTypeInfo,
|
||||||
|
&pb.UserInfoReq{}); err != nil {
|
||||||
|
logrus.Error(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// list
|
// list
|
||||||
this.dataList = widget.NewListWithData(this.data,
|
this.dataList = widget.NewListWithData(this.data,
|
||||||
func() fyne.CanvasObject {
|
func() fyne.CanvasObject {
|
||||||
@ -76,7 +88,7 @@ func (this *toyUserInfo) Init(obs observer.Observer) error {
|
|||||||
// sign := widget.NewRichTextFromMarkdown(``)
|
// sign := widget.NewRichTextFromMarkdown(``)
|
||||||
// layout
|
// layout
|
||||||
this.widget = widget.NewCard("", "",
|
this.widget = widget.NewCard("", "",
|
||||||
container.NewBorder(container.NewHBox(this.titleLabel, layout.NewSpacer(), this.refreshBtn, this.copyBtn),
|
container.NewBorder(container.NewHBox(this.titleLabel, layout.NewSpacer(), this.logoutBtn, this.refreshBtn, this.copyBtn),
|
||||||
nil, nil, nil, container.NewVScroll(this.dataList)))
|
nil, nil, nil, container.NewVScroll(this.dataList)))
|
||||||
this.widget.Resize(fyne.NewSize(ToyWidth, 650))
|
this.widget.Resize(fyne.NewSize(ToyWidth, 650))
|
||||||
|
|
||||||
|
@ -13,13 +13,15 @@ type BaseformView struct {
|
|||||||
form *widget.Form
|
form *widget.Form
|
||||||
obs observer.Observer
|
obs observer.Observer
|
||||||
w fyne.Window
|
w fyne.Window
|
||||||
|
res *widget.Entry
|
||||||
service service.PttService
|
service service.PttService
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *BaseformView) Init(service service.PttService, obs observer.Observer, w fyne.Window) {
|
func (this *BaseformView) Init(service service.PttService, obs observer.Observer, w fyne.Window, res *widget.Entry) {
|
||||||
this.service = service
|
this.service = service
|
||||||
this.obs = obs
|
this.obs = obs
|
||||||
this.w = w
|
this.w = w
|
||||||
|
this.res = res
|
||||||
this.form = widget.NewForm()
|
this.form = widget.NewForm()
|
||||||
this.form.SubmitText = common.BUTTON_OK
|
this.form.SubmitText = common.BUTTON_OK
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,11 @@ import (
|
|||||||
"go_dreamfactory/modules/sociaty"
|
"go_dreamfactory/modules/sociaty"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
jsoniter "github.com/json-iterator/go"
|
||||||
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
|
"fyne.io/fyne/v2/dialog"
|
||||||
"fyne.io/fyne/v2/theme"
|
"fyne.io/fyne/v2/theme"
|
||||||
"fyne.io/fyne/v2/widget"
|
"fyne.io/fyne/v2/widget"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
@ -20,8 +23,9 @@ import (
|
|||||||
type SociatyListView struct {
|
type SociatyListView struct {
|
||||||
sociatyList func()
|
sociatyList func()
|
||||||
BaseformView
|
BaseformView
|
||||||
itemList *common.ItemList
|
itemList *common.ItemList
|
||||||
flag bool
|
flag bool
|
||||||
|
detailFlag bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||||
@ -29,6 +33,14 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
|
|
||||||
this.itemList.ItemList = this.itemList.CreateList()
|
this.itemList.ItemList = this.itemList.CreateList()
|
||||||
|
|
||||||
|
this.itemList.ItemList.OnSelected = func(id widget.ListItemID) {
|
||||||
|
item := this.itemList.CachedList.Items[id]
|
||||||
|
logrus.Debug(item)
|
||||||
|
if s, ok := item.Data.(*pb.DBSociaty); ok {
|
||||||
|
this.res.Text, _ = jsoniter.MarshalToString(s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.sociatyList = func() {
|
this.sociatyList = func() {
|
||||||
this.itemList.Reset()
|
this.itemList.Reset()
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
@ -82,7 +94,31 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 明细
|
// 明细
|
||||||
detailBtn := widget.NewButton("明细", nil)
|
// item := &entryItem{
|
||||||
|
// sociatyName: widget.NewEntry(),
|
||||||
|
// notice: widget.NewMultiLineEntry(),
|
||||||
|
// icon: widget.NewEntry(),
|
||||||
|
// isApplyCheck: widget.NewCheck("审批", nil),
|
||||||
|
// applyLv: widget.NewEntry(),
|
||||||
|
// }
|
||||||
|
|
||||||
|
// this.form.AppendItem(widget.NewFormItem("公会名称", item.sociatyName))
|
||||||
|
// this.form.AppendItem(widget.NewFormItem("公告", item.notice))
|
||||||
|
// this.form.AppendItem(widget.NewFormItem("图标", item.icon))
|
||||||
|
// this.form.AppendItem(widget.NewFormItem("审批", item.isApplyCheck))
|
||||||
|
// this.form.AppendItem(widget.NewFormItem("入会等级", item.applyLv))
|
||||||
|
// this.formdataListen(item)
|
||||||
|
|
||||||
|
// detailBtn := widget.NewButton("明细", func() {
|
||||||
|
// if err := service.GetPttService().SendToClient(
|
||||||
|
// string(comm.ModuleSociaty),
|
||||||
|
// sociaty.SociatySubTypeMine,
|
||||||
|
// &pb.SociatyMineReq{}); err != nil {
|
||||||
|
// logrus.Error(err)
|
||||||
|
// }
|
||||||
|
|
||||||
|
// defer this.showSociatyDetailWin()
|
||||||
|
// })
|
||||||
|
|
||||||
//过滤
|
//过滤
|
||||||
filter := widget.NewSelect([]string{"全部", "满足条件", "无需审批", "申请中"}, func(s string) {
|
filter := widget.NewSelect([]string{"全部", "满足条件", "无需审批", "申请中"}, func(s string) {
|
||||||
@ -127,7 +163,7 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
buttonBar := container.NewHBox(refreshBtn, applyBtn, cancalApplyBtn, detailBtn, filter)
|
buttonBar := container.NewHBox(refreshBtn, applyBtn, cancalApplyBtn, filter)
|
||||||
cBar := container.NewBorder(nil, nil, buttonBar, searchBtn, searchEntry)
|
cBar := container.NewBorder(nil, nil, buttonBar, searchBtn, searchEntry)
|
||||||
// layout
|
// layout
|
||||||
c := container.NewBorder(cBar, nil, nil, nil, this.itemList.ItemList)
|
c := container.NewBorder(cBar, nil, nil, nil, this.itemList.ItemList)
|
||||||
@ -161,10 +197,12 @@ func (this *SociatyListView) dataListener() {
|
|||||||
} else {
|
} else {
|
||||||
isApplyCheckLbl = "无需审核"
|
isApplyCheckLbl = "无需审核"
|
||||||
}
|
}
|
||||||
lbl := fmt.Sprintf("%d - %-15s 等级:%-5d 等级限制:%-5d (%d) %10v", i+1, v.Name, v.Lv, v.ApplyLv, memberCount, isApplyCheckLbl)
|
lbl := fmt.Sprintf("%d - %-15s 等级:%-5d 等级限制:%-5d (%d) %10v",
|
||||||
|
i+1, v.Name, v.Lv, v.ApplyLv, memberCount, isApplyCheckLbl)
|
||||||
item := common.Item{
|
item := common.Item{
|
||||||
Id: v.Id,
|
Id: v.Id,
|
||||||
Text: lbl,
|
Text: lbl,
|
||||||
|
Data: v,
|
||||||
}
|
}
|
||||||
this.itemList.AddItem(item)
|
this.itemList.AddItem(item)
|
||||||
}
|
}
|
||||||
@ -192,3 +230,38 @@ func (this *SociatyListView) dataListener() {
|
|||||||
})
|
})
|
||||||
this.flag = true
|
this.flag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 显示公会明细
|
||||||
|
func (this *SociatyListView) showSociatyDetailWin() {
|
||||||
|
c := container.NewBorder(nil, nil, nil, nil, this.form)
|
||||||
|
dconf := dialog.NewCustom("公会详情", "关闭", c, this.w)
|
||||||
|
dconf.Resize(fyne.NewSize(800, 500))
|
||||||
|
dconf.Show()
|
||||||
|
this.form.Refresh()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *SociatyListView) formdataListen(item *entryItem) {
|
||||||
|
if this.detailFlag {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
||||||
|
OnNotify: func(d interface{}, args ...interface{}) {
|
||||||
|
data := d.(*pb.UserMessage)
|
||||||
|
if !(data.MainType == string(comm.ModuleSociaty) &&
|
||||||
|
data.SubType == sociaty.SociatySubTypeMine) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
rsp := &pb.SociatyMineResp{}
|
||||||
|
|
||||||
|
if rsp.Sociaty == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
logrus.Debug(rsp.Sociaty)
|
||||||
|
item.sociatyName.Text = rsp.Sociaty.Name
|
||||||
|
item.notice.Text = rsp.Sociaty.Notice
|
||||||
|
|
||||||
|
this.form.Refresh()
|
||||||
|
},
|
||||||
|
})
|
||||||
|
this.detailFlag = true
|
||||||
|
}
|
||||||
|
@ -207,7 +207,6 @@ func (this *SociatyMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
t.MainType,
|
t.MainType,
|
||||||
sociaty.SociatySubTypeSetting,
|
sociaty.SociatySubTypeSetting,
|
||||||
&pb.SociatySettingReq{
|
&pb.SociatySettingReq{
|
||||||
SociatyId: this.sociaty.Id,
|
|
||||||
Icon: item.icon.Text,
|
Icon: item.icon.Text,
|
||||||
Notice: item.notice.Text,
|
Notice: item.notice.Text,
|
||||||
ApplyLv: cast.ToInt32(item.applyLv.Text),
|
ApplyLv: cast.ToInt32(item.applyLv.Text),
|
||||||
|
@ -178,8 +178,9 @@ const (
|
|||||||
TableSociatyLog = "sociatylog"
|
TableSociatyLog = "sociatylog"
|
||||||
|
|
||||||
///充值数据表
|
///充值数据表
|
||||||
TablePay = "pay"
|
TablePay = "payorder"
|
||||||
|
///充值数据表
|
||||||
|
TablePayUser = "payuser"
|
||||||
// 巨怪列车收益记录
|
// 巨怪列车收益记录
|
||||||
TableTrollRecord = "trollrecord"
|
TableTrollRecord = "trollrecord"
|
||||||
)
|
)
|
||||||
@ -262,11 +263,12 @@ const (
|
|||||||
const (
|
const (
|
||||||
ResGold = "gold" //金币
|
ResGold = "gold" //金币
|
||||||
ResExp = "exp" //经验
|
ResExp = "exp" //经验
|
||||||
|
VipExp = "vipexp" //经验
|
||||||
ResDiamond = "diamond" //钻石
|
ResDiamond = "diamond" //钻石
|
||||||
ResTaskActive = "taskActive" //任务活跃度
|
ResTaskActive = "taskActive" //任务活跃度
|
||||||
ResFriend = "friendPoint" //友情点
|
ResFriend = "friendPoint" //友情点
|
||||||
|
StarCoin = "starcoin" //星座币
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Gold int32 = 1 //金币
|
Gold int32 = 1 //金币
|
||||||
Diamond int32 = 2 //钻石
|
Diamond int32 = 2 //钻石
|
||||||
|
@ -216,12 +216,14 @@ type (
|
|||||||
ISociaty interface {
|
ISociaty interface {
|
||||||
//会长弹劾处理
|
//会长弹劾处理
|
||||||
ProcessAccuse(uid, sociatyId string)
|
ProcessAccuse(uid, sociatyId string)
|
||||||
// 公会成员
|
// 获取我的公会成员
|
||||||
Members(uid string) (list []*pb.SociatyMemberInfo)
|
MembersByUid(uid string) (list []*pb.SociatyMemberInfo)
|
||||||
|
// 获取公会成员
|
||||||
|
MembersBySociatyId(sociatyId string) (list []*pb.SociatyMemberInfo)
|
||||||
}
|
}
|
||||||
//星座图
|
//星座图
|
||||||
IHoroscope interface {
|
IHoroscope interface {
|
||||||
//计算新作图属性
|
//计算新作图属性
|
||||||
ComputeHeroNumeric(hero *pb.DBHero)
|
ComputeHeroNumeric(uid string, hero ...*pb.DBHero)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -42,6 +42,81 @@ func (this *modelBattleComp) queryrecord(oid string) (record *pb.DBBattleRecord,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//创建pve 战斗记录
|
||||||
|
func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBConn, btype pb.BattleType, req *pb.BattleEVEReq) (record *pb.DBBattleRecord, code pb.ErrorCode) {
|
||||||
|
record = &pb.DBBattleRecord{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Title: req.Title,
|
||||||
|
Btype: btype,
|
||||||
|
Ptype: req.Ptype,
|
||||||
|
State: pb.BBattleState_in,
|
||||||
|
RedCompId: session.GetUserId(),
|
||||||
|
Redflist: make([]*pb.DBBattleFormt, len(req.Redformat)),
|
||||||
|
BlueCompId: "",
|
||||||
|
Buleflist: make([]*pb.DBBattleFormt, len(req.Buleformat)),
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, v := range req.Redformat {
|
||||||
|
if mf, err := this.module.configure.GetMonsterFormat(v); err != nil {
|
||||||
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
record.Buleflist[i] = &pb.DBBattleFormt{
|
||||||
|
Leadpos: mf.CaptainId,
|
||||||
|
Team: make([]*pb.BattleRole, len(mf.MonsterList)),
|
||||||
|
}
|
||||||
|
for i1, v1 := range mf.MonsterList {
|
||||||
|
if v1 == -1 {
|
||||||
|
record.Buleflist[i].Team[i1] = nil
|
||||||
|
} else {
|
||||||
|
if monst, err := this.module.configure.GetMonster(v1); err != nil {
|
||||||
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
|
} else {
|
||||||
|
hero := &pb.DBHero{}
|
||||||
|
if hero = this.module.ModuleHero.CreateMonster(monst.HeroId, monst.Star, mf.Lv); hero == nil {
|
||||||
|
log.Error("on found battle req data", log.Field{Key: "HeroId", Value: monst.HeroId})
|
||||||
|
code = pb.ErrorCode_ReqParameterError
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
record.Buleflist[i].Team[i1] = &pb.BattleRole{
|
||||||
|
Tid: int32(200 + i*10 + i1),
|
||||||
|
Oid: hero.Id,
|
||||||
|
HeroID: hero.HeroID,
|
||||||
|
Pos: int32(i1),
|
||||||
|
Star: hero.Star,
|
||||||
|
Lv: hero.Lv,
|
||||||
|
CaptainSkill: hero.CaptainSkill,
|
||||||
|
NormalSkill: hero.NormalSkill,
|
||||||
|
Property: hero.Property,
|
||||||
|
}
|
||||||
|
if monst.Equip4 != 0 {
|
||||||
|
if suit, err := this.module.configure.Getequipsuit(monst.Equip4); err != nil {
|
||||||
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
record.Buleflist[i].Team[i1].MainSuitSkill = suit.Skill
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if monst.Equip2 != 0 {
|
||||||
|
if suit, err := this.module.configure.Getequipsuit(monst.Equip2); err != nil {
|
||||||
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
record.Buleflist[i].Team[i1].SubSuitSkill = suit.Skill
|
||||||
|
}
|
||||||
|
}
|
||||||
|
record.Buleflist[i].Team[i1].Property[comm.Hp] = int32(float32(record.Buleflist[i].Team[i1].Property[comm.Hp]) * mf.Hppro)
|
||||||
|
record.Buleflist[i].Team[i1].Property[comm.Atk] = int32(float32(record.Buleflist[i].Team[i1].Property[comm.Atk]) * mf.Atkpro)
|
||||||
|
record.Buleflist[i].Team[i1].Property[comm.Def] = int32(float32(record.Buleflist[i].Team[i1].Property[comm.Def]) * mf.Defpro)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//创建pve 战斗记录
|
//创建pve 战斗记录
|
||||||
func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBConn, btype pb.BattleType, req *pb.BattlePVEReq) (record *pb.DBBattleRecord, code pb.ErrorCode) {
|
func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBConn, btype pb.BattleType, req *pb.BattlePVEReq) (record *pb.DBBattleRecord, code pb.ErrorCode) {
|
||||||
record = &pb.DBBattleRecord{
|
record = &pb.DBBattleRecord{
|
||||||
@ -168,10 +243,52 @@ func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBCon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if err := this.Add(record.Id, record); err != nil {
|
return
|
||||||
// this.module.Errorln(err)
|
}
|
||||||
// return
|
|
||||||
// }
|
//创建pvp 战斗请求
|
||||||
|
func (this *modelBattleComp) createpvp(session comm.IUserSession, conn *db.DBConn, btype pb.BattleType, req *pb.BattlePVPReq) (record *pb.DBBattleRecord, code pb.ErrorCode) {
|
||||||
|
record = &pb.DBBattleRecord{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Title: req.Title,
|
||||||
|
Btype: btype,
|
||||||
|
Ptype: req.Ptype,
|
||||||
|
State: pb.BBattleState_in,
|
||||||
|
RedCompId: req.Redformat.Uid,
|
||||||
|
Redflist: make([]*pb.DBBattleFormt, 1),
|
||||||
|
BlueCompId: req.Buleformat.Uid,
|
||||||
|
Buleflist: make([]*pb.DBBattleFormt, 1),
|
||||||
|
}
|
||||||
|
record.Redflist[0] = &pb.DBBattleFormt{
|
||||||
|
Leadpos: req.Redformat.Leadpos,
|
||||||
|
Team: make([]*pb.BattleRole, len(req.Redformat.Format)),
|
||||||
|
}
|
||||||
|
//自己的英雄阵营
|
||||||
|
for i, v := range req.Redformat.Format {
|
||||||
|
if v != nil {
|
||||||
|
tid := 100 + i
|
||||||
|
if record.Redflist[0].Team[i], code = this.createBattleRole(v, tid, i); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
record.Redflist[0].Team[i] = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
record.Buleflist[0] = &pb.DBBattleFormt{
|
||||||
|
Leadpos: req.Buleformat.Leadpos,
|
||||||
|
Team: make([]*pb.BattleRole, len(req.Buleformat.Format)),
|
||||||
|
}
|
||||||
|
//自己的英雄阵营
|
||||||
|
for i, v := range req.Buleformat.Format {
|
||||||
|
if v != nil {
|
||||||
|
tid := 200 + i
|
||||||
|
if record.Buleflist[0].Team[i], code = this.createBattleRole(v, tid, i); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
record.Buleflist[0].Team[i] = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,49 +341,3 @@ func (this *modelBattleComp) createBattleRole(hero *pb.DBHero, tid, pos int) (ro
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//创建pvp 战斗请求
|
|
||||||
func (this *modelBattleComp) createpvp(session comm.IUserSession, conn *db.DBConn, btype pb.BattleType, req *pb.BattlePVPReq) (record *pb.DBBattleRecord, code pb.ErrorCode) {
|
|
||||||
record = &pb.DBBattleRecord{
|
|
||||||
Id: primitive.NewObjectID().Hex(),
|
|
||||||
Title: req.Title,
|
|
||||||
Btype: btype,
|
|
||||||
Ptype: req.Ptype,
|
|
||||||
State: pb.BBattleState_in,
|
|
||||||
RedCompId: req.Redformat.Uid,
|
|
||||||
Redflist: make([]*pb.DBBattleFormt, 1),
|
|
||||||
BlueCompId: req.Buleformat.Uid,
|
|
||||||
Buleflist: make([]*pb.DBBattleFormt, 1),
|
|
||||||
}
|
|
||||||
record.Redflist[0] = &pb.DBBattleFormt{
|
|
||||||
Leadpos: req.Redformat.Leadpos,
|
|
||||||
Team: make([]*pb.BattleRole, len(req.Redformat.Format)),
|
|
||||||
}
|
|
||||||
//自己的英雄阵营
|
|
||||||
for i, v := range req.Redformat.Format {
|
|
||||||
if v != nil {
|
|
||||||
tid := 100 + i
|
|
||||||
if record.Redflist[0].Team[i], code = this.createBattleRole(v, tid, i); code != pb.ErrorCode_Success {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
record.Redflist[0].Team[i] = nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
record.Buleflist[0] = &pb.DBBattleFormt{
|
|
||||||
Leadpos: req.Buleformat.Leadpos,
|
|
||||||
Team: make([]*pb.BattleRole, len(req.Buleformat.Format)),
|
|
||||||
}
|
|
||||||
//自己的英雄阵营
|
|
||||||
for i, v := range req.Buleformat.Format {
|
|
||||||
if v != nil {
|
|
||||||
tid := 200 + i
|
|
||||||
if record.Buleflist[0].Team[i], code = this.createBattleRole(v, tid, i); code != pb.ErrorCode_Success {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
record.Buleflist[0].Team[i] = nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@ -72,6 +72,29 @@ func (this *Battle) QueryBattleRecord(oid string) (code pb.ErrorCode, record *pb
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//创建pve战斗
|
||||||
|
func (this *Battle) CreateEveBattle(session comm.IUserSession, req *pb.BattleEVEReq) (code pb.ErrorCode, record *pb.DBBattleRecord) {
|
||||||
|
var (
|
||||||
|
conn *db.DBConn
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if !this.IsCross() {
|
||||||
|
conn, err = db.Local()
|
||||||
|
} else {
|
||||||
|
conn, err = db.ServerDBConn(session.GetServiecTag())
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
code = pb.ErrorCode_DBError
|
||||||
|
this.Errorf("session:%v err:", session, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if record, code = this.modelBattle.createeve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//创建pve战斗
|
//创建pve战斗
|
||||||
func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVEReq) (code pb.ErrorCode, record *pb.DBBattleRecord) {
|
func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVEReq) (code pb.ErrorCode, record *pb.DBBattleRecord) {
|
||||||
var (
|
var (
|
||||||
|
@ -298,7 +298,7 @@ func (this *Chat) pushChatToWorld(msg *pb.DBChat) (err error) {
|
|||||||
|
|
||||||
//推送消息到工会
|
//推送消息到工会
|
||||||
func (this *Chat) pushChatToUnion(msg *pb.DBChat) (err error) {
|
func (this *Chat) pushChatToUnion(msg *pb.DBChat) (err error) {
|
||||||
if members := this.sociaty.Members(msg.Suid); members != nil {
|
if members := this.sociaty.MembersBySociatyId(msg.UnionId); members != nil {
|
||||||
users := make([]string, 0, len(members))
|
users := make([]string, 0, len(members))
|
||||||
for _, v := range members {
|
for _, v := range members {
|
||||||
if v.OfflineTime == 0 { //离线时间为0 表示在线
|
if v.OfflineTime == 0 { //离线时间为0 表示在线
|
||||||
|
@ -46,6 +46,6 @@ func (this *apiComp) Reset(session comm.IUserSession, req *pb.HoroscopeResetReq)
|
|||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeResetResp{Issucc: true})
|
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeResetResp{Issucc: true, Info: info})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -51,11 +51,11 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.HoroscopeUpgrade
|
|||||||
if code = this.module.ConsumeRes(session, conf.CostItem, true); code != pb.ErrorCode_Success {
|
if code = this.module.ConsumeRes(session, conf.CostItem, true); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
info.Nodes[conf.NodeId] = conf.Lv
|
info.Nodes[conf.NodeId] = conf.Lv + 1
|
||||||
if err = this.module.modelHoroscope.updateInfo(info); err != nil {
|
if err = this.module.modelHoroscope.updateInfo(info); err != nil {
|
||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeUpgradeResp{Nid: conf.NodeId, Lv: conf.Lv})
|
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeUpgradeResp{Nid: conf.NodeId, Lv: conf.Lv + 1})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -72,14 +72,16 @@ func (this *modelHoroscope) updateInfo(info *pb.DBHoroscope) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//计算英雄属性
|
//计算英雄属性
|
||||||
func (this *modelHoroscope) computeHeroNumeric(hero *pb.DBHero) (err error) {
|
func (this *modelHoroscope) computeHeroNumeric(uid string, hero ...*pb.DBHero) (err error) {
|
||||||
var (
|
var (
|
||||||
info *pb.DBHoroscope
|
info *pb.DBHoroscope
|
||||||
)
|
)
|
||||||
if info, err = this.queryInfo(hero.Uid); err != nil {
|
if info, err = this.queryInfo(uid); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = this.compute(info, hero)
|
for _, v := range hero {
|
||||||
|
err = this.compute(info, v)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ func (this *Horoscope) OnInstallComp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//计算英雄数值
|
//计算英雄数值
|
||||||
func (this *Horoscope) ComputeHeroNumeric(hero *pb.DBHero) {
|
func (this *Horoscope) ComputeHeroNumeric(uid string, hero ...*pb.DBHero) {
|
||||||
this.modelHoroscope.computeHeroNumeric(hero)
|
this.modelHoroscope.computeHeroNumeric(uid, hero...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
package pay
|
package pay
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"go_dreamfactory/lego/core"
|
"go_dreamfactory/lego/core"
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ()
|
const (
|
||||||
|
game_recharge = "game_recharge.json"
|
||||||
|
)
|
||||||
|
|
||||||
///背包配置管理组件
|
///背包配置管理组件
|
||||||
type configureComp struct {
|
type configureComp struct {
|
||||||
@ -17,6 +21,25 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.MCompConfigure.Init(service, module, comp, options)
|
this.MCompConfigure.Init(service, module, comp, options)
|
||||||
this.module = module.(*Pay)
|
this.module = module.(*Pay)
|
||||||
|
this.LoadConfigure(game_recharge, cfg.NewGameRecharge)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取手动加入频道 任务限制
|
||||||
|
func (this *configureComp) getGameRecharge(id string) (result *cfg.GameRechargeData, err error) {
|
||||||
|
var (
|
||||||
|
v interface{}
|
||||||
|
ok bool
|
||||||
|
)
|
||||||
|
if v, err = this.GetConfigure(game_recharge); err != nil {
|
||||||
|
this.module.Errorf("err:%v", err)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if result, ok = v.(*cfg.GameRecharge).GetDataMap()[id]; !ok {
|
||||||
|
err = fmt.Errorf("getGameRecharge on found %d", id)
|
||||||
|
this.module.Errorf("err:%v", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -12,13 +12,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
///论坛 数据组件
|
///论坛 数据组件
|
||||||
type modelShopComp struct {
|
type modelPayComp struct {
|
||||||
modules.MCompModel
|
modules.MCompModel
|
||||||
module *Pay
|
module *Pay
|
||||||
}
|
}
|
||||||
|
|
||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
func (this *modelShopComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
func (this *modelPayComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
||||||
this.MCompModel.Init(service, module, comp, opt)
|
this.MCompModel.Init(service, module, comp, opt)
|
||||||
this.module = module.(*Pay)
|
this.module = module.(*Pay)
|
||||||
this.TableName = comm.TablePay
|
this.TableName = comm.TablePay
|
||||||
@ -29,12 +29,14 @@ func (this *modelShopComp) Init(service core.IService, module core.IModule, comp
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询用户装备数据
|
//查询用户重置数据
|
||||||
func (this *modelShopComp) QueryUserShopData(uId string) (data *pb.DBShop, err error) {
|
func (this *modelPayComp) queryUserShopData(uId string) (result []*pb.DBPayOrder, err error) {
|
||||||
data = &pb.DBShop{}
|
result = make([]*pb.DBPayOrder, 0)
|
||||||
if err = this.Get(uId, data); err != nil && err != mgo.MongodbNil {
|
if err = this.GetList(uId, &result); err != nil && err != mgo.MongodbNil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
}
|
}
|
||||||
err = nil
|
if err == mgo.MongodbNil {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
42
modules/pay/modelUser.go
Normal file
42
modules/pay/modelUser.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
package pay
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
|
)
|
||||||
|
|
||||||
|
///论坛 数据组件
|
||||||
|
type modelUserComp struct {
|
||||||
|
modules.MCompModel
|
||||||
|
module *Pay
|
||||||
|
}
|
||||||
|
|
||||||
|
//组件初始化接口
|
||||||
|
func (this *modelUserComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
||||||
|
this.MCompModel.Init(service, module, comp, opt)
|
||||||
|
this.module = module.(*Pay)
|
||||||
|
this.TableName = comm.TablePayUser
|
||||||
|
//创建uid索引
|
||||||
|
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||||
|
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询用户重置数据
|
||||||
|
func (this *modelUserComp) queryUserData(uId string) (result *pb.DBPayUser, err error) {
|
||||||
|
result = &pb.DBPayUser{}
|
||||||
|
if err = this.Get(uId, result); err != nil && err != mgo.MongodbNil {
|
||||||
|
this.module.Errorf("err:%v", err)
|
||||||
|
}
|
||||||
|
if err == mgo.MongodbNil {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
@ -8,6 +8,7 @@ import (
|
|||||||
"go_dreamfactory/lego/sys/log"
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -23,6 +24,7 @@ func NewModule() core.IModule {
|
|||||||
type Pay struct {
|
type Pay struct {
|
||||||
modules.ModuleBase
|
modules.ModuleBase
|
||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
|
modelUser *modelUserComp
|
||||||
configure *configureComp
|
configure *configureComp
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,13 +48,50 @@ func (this *Pay) Start() (err error) {
|
|||||||
//装备组件
|
//装备组件
|
||||||
func (this *Pay) OnInstallComp() {
|
func (this *Pay) OnInstallComp() {
|
||||||
this.ModuleBase.OnInstallComp()
|
this.ModuleBase.OnInstallComp()
|
||||||
|
this.modelUser = this.RegisterComp(new(modelUserComp)).(*modelUserComp)
|
||||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
}
|
}
|
||||||
|
|
||||||
//RPC-----------------------------------------------------------------------------------------------------------------------
|
//RPC-----------------------------------------------------------------------------------------------------------------------
|
||||||
func (this *Pay) Rpc_ModulePayDelivery(ctx context.Context, args *pb.PayDeliveryReq, reply *pb.PayDeliveryResp) (err error) {
|
func (this *Pay) Rpc_ModulePayDelivery(ctx context.Context, args *pb.PayDeliveryReq, reply *pb.PayDeliveryResp) (err error) {
|
||||||
this.Debug("Rpc_ModulePayDelivery", log.Field{Key: "args", Value: args.String()})
|
this.Debug("Rpc_ModulePayDelivery", log.Field{Key: "args", Value: args.String()})
|
||||||
|
var (
|
||||||
|
conf *cfg.GameRechargeData
|
||||||
|
user *pb.DBPayUser
|
||||||
|
res []*cfg.Gameatn
|
||||||
|
session comm.IUserSession
|
||||||
|
online bool
|
||||||
|
)
|
||||||
|
|
||||||
|
if conf, err = this.configure.getGameRecharge(args.Productid); err != nil {
|
||||||
|
reply.Code = pb.ErrorCode_ConfigNoFound
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if user, err = this.modelUser.queryUserData(args.Uid); err != nil {
|
||||||
|
reply.Code = pb.ErrorCode_DBError
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if user.Goods[args.Productid] > 0 {
|
||||||
|
res = conf.Vipexp
|
||||||
|
} else {
|
||||||
|
res = conf.DiamondNumDouble
|
||||||
|
}
|
||||||
|
|
||||||
|
if session, online = this.GetUserSession(args.Uid); online {
|
||||||
|
if reply.Code = this.DispenseRes(session, res, true); reply.Code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err = session.Push(); err != nil {
|
||||||
|
this.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
session = comm.NewUserSessionByPools(this.service)
|
||||||
|
session.SetSession("", "", "", "", args.Uid)
|
||||||
|
if reply.Code = this.DispenseRes(session, res, false); reply.Code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ const (
|
|||||||
SociatySubTypeRank = "rank"
|
SociatySubTypeRank = "rank"
|
||||||
SociatySubTypeTasklist = "tasklist"
|
SociatySubTypeTasklist = "tasklist"
|
||||||
SociatySubTypeLog = "log"
|
SociatySubTypeLog = "log"
|
||||||
|
SociatySubTypeAgreePush = "agree"
|
||||||
)
|
)
|
||||||
|
|
||||||
type apiComp struct {
|
type apiComp struct {
|
||||||
|
@ -42,6 +42,12 @@ func (this *apiComp) Agree(session comm.IUserSession, req *pb.SociatyAgreeReq) (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//审核通过推送
|
||||||
|
this.module.SendMsgToUser(string(this.module.GetType()), "pagree", &pb.SociatyPAgreePush{
|
||||||
|
Uid: uid,
|
||||||
|
SociatyId: sociaty.Id,
|
||||||
|
}, req.Uid)
|
||||||
|
|
||||||
rsp := &pb.SociatyAgreeResp{
|
rsp := &pb.SociatyAgreeResp{
|
||||||
Uid: req.Uid,
|
Uid: req.Uid,
|
||||||
SociatyId: sociaty.Id,
|
SociatyId: sociaty.Id,
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
// 公会创建
|
// 公会创建
|
||||||
func (this *apiComp) CreateCheck(session comm.IUserSession, req *pb.SociatyCreateReq) (code pb.ErrorCode) {
|
func (this *apiComp) CreateCheck(session comm.IUserSession, req *pb.SociatyCreateReq) (code pb.ErrorCode) {
|
||||||
if len(req.Notice) > 150 {
|
if len(req.Notice) > 150 || req.Name == ""{
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -311,8 +311,19 @@ func (this *ModelSociaty) dismiss(sociaty *pb.DBSociaty) error {
|
|||||||
if err := this.memberClear(sociaty); err != nil {
|
if err := this.memberClear(sociaty); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err := this.DelListlds("", sociaty.Id)
|
if err := this.DelListlds("", sociaty.Id); err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
|
//推送
|
||||||
|
if err := this.moduleSociaty.SendMsgToUsers(
|
||||||
|
string(this.moduleSociaty.GetType()),
|
||||||
|
"pdismiss",
|
||||||
|
&pb.SociatyPDismissPush{SociatyId: sociaty.Id},
|
||||||
|
this.getMemberIds(sociaty)...); err != nil {
|
||||||
|
log.Errorf("公会解散推送 err:%v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除请求记录
|
//删除请求记录
|
||||||
|
@ -144,7 +144,7 @@ func (this *ModelSociatyLog) addLog(tag Tag, sociatyId string, params ...string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 发消息到公会聊天
|
// 发消息到公会聊天
|
||||||
if module, err := this.moduleSociaty.service.GetModule(comm.ModuleChat); err == nil {
|
if module, err := this.service.GetModule(comm.ModuleChat); err == nil {
|
||||||
if chat, ok := module.(comm.IChat); ok {
|
if chat, ok := module.(comm.IChat); ok {
|
||||||
chat.SendUnionChat(&pb.DBChat{
|
chat.SendUnionChat(&pb.DBChat{
|
||||||
Channel: pb.ChatChannel_Union,
|
Channel: pb.ChatChannel_Union,
|
||||||
|
@ -75,8 +75,14 @@ func (this *Sociaty) ProcessAccuse(uid, sociatyId string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 公会成员
|
// 获取我的公会成员
|
||||||
func (this *Sociaty) Members(uid string) (list []*pb.SociatyMemberInfo) {
|
func (this *Sociaty) MembersByUid(uid string) (list []*pb.SociatyMemberInfo) {
|
||||||
sociaty := this.modelSociaty.getUserSociaty(uid)
|
sociaty := this.modelSociaty.getUserSociaty(uid)
|
||||||
return this.modelSociaty.members(sociaty)
|
return this.modelSociaty.members(sociaty)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取公会成员
|
||||||
|
func (this *Sociaty) MembersBySociatyId(sociatyId string) (list []*pb.SociatyMemberInfo) {
|
||||||
|
sociaty := this.modelSociaty.getSociaty(sociatyId)
|
||||||
|
return this.modelSociaty.members(sociaty)
|
||||||
|
}
|
||||||
|
@ -216,9 +216,12 @@ func (this *User) QueryAttributeValue(uid string, attr string) (value int64) {
|
|||||||
switch attr {
|
switch attr {
|
||||||
case comm.ResGold:
|
case comm.ResGold:
|
||||||
return user.Gold
|
return user.Gold
|
||||||
|
|
||||||
case comm.ResExp:
|
case comm.ResExp:
|
||||||
return user.Exp
|
return user.Exp
|
||||||
|
case comm.VipExp:
|
||||||
|
return user.Exp
|
||||||
|
case comm.StarCoin:
|
||||||
|
return user.Starcoin
|
||||||
case comm.ResDiamond:
|
case comm.ResDiamond:
|
||||||
return user.Diamond
|
return user.Diamond
|
||||||
}
|
}
|
||||||
@ -265,10 +268,12 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
|
|||||||
}
|
}
|
||||||
|
|
||||||
change = &pb.UserResChangedPush{
|
change = &pb.UserResChangedPush{
|
||||||
Gold: user.Gold,
|
Gold: user.Gold,
|
||||||
Exp: user.Exp,
|
Exp: user.Exp,
|
||||||
Diamond: user.Diamond,
|
Vipexp: user.Vipexp,
|
||||||
Friend: userEx.FriendPoint,
|
Diamond: user.Diamond,
|
||||||
|
Friend: userEx.FriendPoint,
|
||||||
|
Starcoin: user.Starcoin,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch attr {
|
switch attr {
|
||||||
@ -288,6 +293,14 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
change.Exp += int64(add)
|
change.Exp += int64(add)
|
||||||
|
case comm.VipExp:
|
||||||
|
if add < 0 {
|
||||||
|
if user.Vipexp+int64(add) < 0 {
|
||||||
|
code = pb.ErrorCode_UserExpNoEnough
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
change.Vipexp += int64(add)
|
||||||
case comm.ResDiamond:
|
case comm.ResDiamond:
|
||||||
if add < 0 {
|
if add < 0 {
|
||||||
if user.Diamond+int64(add) < 0 {
|
if user.Diamond+int64(add) < 0 {
|
||||||
@ -304,6 +317,14 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
change.Friend += add
|
change.Friend += add
|
||||||
|
case comm.StarCoin:
|
||||||
|
if add < 0 {
|
||||||
|
if user.Starcoin+int64(add) < 0 {
|
||||||
|
code = pb.ErrorCode_UserFriendNoEnough
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
change.Starcoin += int64(add)
|
||||||
default:
|
default:
|
||||||
err = errors.New(fmt.Sprintf("%s no supported", attr))
|
err = errors.New(fmt.Sprintf("%s no supported", attr))
|
||||||
return
|
return
|
||||||
@ -314,6 +335,8 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
|
|||||||
comm.ResGold: change.Gold,
|
comm.ResGold: change.Gold,
|
||||||
comm.ResDiamond: change.Diamond,
|
comm.ResDiamond: change.Diamond,
|
||||||
comm.ResExp: change.Exp,
|
comm.ResExp: change.Exp,
|
||||||
|
comm.VipExp: change.Vipexp,
|
||||||
|
comm.StarCoin: change.Starcoin,
|
||||||
}
|
}
|
||||||
|
|
||||||
//user ex
|
//user ex
|
||||||
|
@ -27,6 +27,7 @@ const (
|
|||||||
BattleType_pve BattleType = 1
|
BattleType_pve BattleType = 1
|
||||||
BattleType_pvp BattleType = 2
|
BattleType_pvp BattleType = 2
|
||||||
BattleType_pvb BattleType = 3
|
BattleType_pvb BattleType = 3
|
||||||
|
BattleType_eve BattleType = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for BattleType.
|
// Enum value maps for BattleType.
|
||||||
@ -36,12 +37,14 @@ var (
|
|||||||
1: "pve",
|
1: "pve",
|
||||||
2: "pvp",
|
2: "pvp",
|
||||||
3: "pvb",
|
3: "pvb",
|
||||||
|
4: "eve",
|
||||||
}
|
}
|
||||||
BattleType_value = map[string]int32{
|
BattleType_value = map[string]int32{
|
||||||
"nil": 0,
|
"nil": 0,
|
||||||
"pve": 1,
|
"pve": 1,
|
||||||
"pvp": 2,
|
"pvp": 2,
|
||||||
"pvb": 3,
|
"pvb": 3,
|
||||||
|
"eve": 4,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -635,22 +638,23 @@ var file_battle_battle_db_proto_rawDesc = []byte{
|
|||||||
0x6e, 0x64, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
|
0x6e, 0x64, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
|
||||||
0x6c, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74,
|
0x6c, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74,
|
||||||
0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2a,
|
0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2a,
|
||||||
0x30, 0x0a, 0x0a, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a,
|
0x39, 0x0a, 0x0a, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a,
|
||||||
0x03, 0x6e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x65, 0x10, 0x01, 0x12,
|
0x03, 0x6e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x65, 0x10, 0x01, 0x12,
|
||||||
0x07, 0x0a, 0x03, 0x70, 0x76, 0x70, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x62, 0x10,
|
0x07, 0x0a, 0x03, 0x70, 0x76, 0x70, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x62, 0x10,
|
||||||
0x03, 0x2a, 0x6e, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
|
0x03, 0x12, 0x07, 0x0a, 0x03, 0x65, 0x76, 0x65, 0x10, 0x04, 0x2a, 0x6e, 0x0a, 0x08, 0x50, 0x6c,
|
||||||
0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c,
|
0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x10, 0x00,
|
||||||
0x69, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x10,
|
0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0a,
|
||||||
0x02, 0x12, 0x09, 0x0a, 0x05, 0x72, 0x74, 0x61, 0x73, 0x6b, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07,
|
0x0a, 0x06, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x72, 0x74,
|
||||||
0x68, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x76, 0x69, 0x6b,
|
0x61, 0x73, 0x6b, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x68, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67,
|
||||||
0x69, 0x6e, 0x67, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x6d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e,
|
0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x76, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x10, 0x05, 0x12, 0x0f,
|
||||||
0x74, 0x61, 0x73, 0x79, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x10,
|
0x0a, 0x0b, 0x6d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79, 0x10, 0x06, 0x12,
|
||||||
0x07, 0x2a, 0x1f, 0x0a, 0x0c, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74,
|
0x09, 0x0a, 0x05, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x10, 0x07, 0x2a, 0x1f, 0x0a, 0x0c, 0x42, 0x42,
|
||||||
0x65, 0x12, 0x06, 0x0a, 0x02, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x65, 0x6e, 0x64,
|
0x61, 0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x69, 0x6e,
|
||||||
0x10, 0x02, 0x2a, 0x2b, 0x0a, 0x0c, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f,
|
0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x10, 0x02, 0x2a, 0x2b, 0x0a, 0x0c, 0x44,
|
||||||
0x6d, 0x70, 0x12, 0x08, 0x0a, 0x04, 0x64, 0x72, 0x61, 0x77, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03,
|
0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x12, 0x08, 0x0a, 0x04, 0x64,
|
||||||
0x72, 0x65, 0x64, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x10, 0x02, 0x42,
|
0x72, 0x61, 0x77, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x10, 0x01, 0x12, 0x08,
|
||||||
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x0a, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x10, 0x02, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -147,6 +147,78 @@ func (x *BattleFormation) GetFriendformat() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略)
|
||||||
|
type BattleEVEReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Ptype PlayType `protobuf:"varint,1,opt,name=ptype,proto3,enum=PlayType" json:"ptype"` //玩法类型
|
||||||
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"` //战斗标题
|
||||||
|
Redformat []int32 `protobuf:"varint,3,rep,packed,name=redformat,proto3" json:"redformat"` //红方
|
||||||
|
Buleformat []int32 `protobuf:"varint,4,rep,packed,name=buleformat,proto3" json:"buleformat"` //蓝方
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) Reset() {
|
||||||
|
*x = BattleEVEReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_battle_battle_msg_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BattleEVEReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_battle_battle_msg_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BattleEVEReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BattleEVEReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) GetPtype() PlayType {
|
||||||
|
if x != nil {
|
||||||
|
return x.Ptype
|
||||||
|
}
|
||||||
|
return PlayType_null
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) GetTitle() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Title
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) GetRedformat() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Redformat
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BattleEVEReq) GetBuleformat() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Buleformat
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略)
|
// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略)
|
||||||
type BattlePVEReq struct {
|
type BattlePVEReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -162,7 +234,7 @@ type BattlePVEReq struct {
|
|||||||
func (x *BattlePVEReq) Reset() {
|
func (x *BattlePVEReq) Reset() {
|
||||||
*x = BattlePVEReq{}
|
*x = BattlePVEReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[2]
|
mi := &file_battle_battle_msg_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -175,7 +247,7 @@ func (x *BattlePVEReq) String() string {
|
|||||||
func (*BattlePVEReq) ProtoMessage() {}
|
func (*BattlePVEReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *BattlePVEReq) ProtoReflect() protoreflect.Message {
|
func (x *BattlePVEReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[2]
|
mi := &file_battle_battle_msg_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -188,7 +260,7 @@ func (x *BattlePVEReq) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use BattlePVEReq.ProtoReflect.Descriptor instead.
|
// Deprecated: Use BattlePVEReq.ProtoReflect.Descriptor instead.
|
||||||
func (*BattlePVEReq) Descriptor() ([]byte, []int) {
|
func (*BattlePVEReq) Descriptor() ([]byte, []int) {
|
||||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{2}
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattlePVEReq) GetPtype() PlayType {
|
func (x *BattlePVEReq) GetPtype() PlayType {
|
||||||
@ -233,7 +305,7 @@ type PVPFormation struct {
|
|||||||
func (x *PVPFormation) Reset() {
|
func (x *PVPFormation) Reset() {
|
||||||
*x = PVPFormation{}
|
*x = PVPFormation{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[3]
|
mi := &file_battle_battle_msg_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -246,7 +318,7 @@ func (x *PVPFormation) String() string {
|
|||||||
func (*PVPFormation) ProtoMessage() {}
|
func (*PVPFormation) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *PVPFormation) ProtoReflect() protoreflect.Message {
|
func (x *PVPFormation) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[3]
|
mi := &file_battle_battle_msg_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -259,7 +331,7 @@ func (x *PVPFormation) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use PVPFormation.ProtoReflect.Descriptor instead.
|
// Deprecated: Use PVPFormation.ProtoReflect.Descriptor instead.
|
||||||
func (*PVPFormation) Descriptor() ([]byte, []int) {
|
func (*PVPFormation) Descriptor() ([]byte, []int) {
|
||||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{3}
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PVPFormation) GetUid() string {
|
func (x *PVPFormation) GetUid() string {
|
||||||
@ -298,7 +370,7 @@ type BattlePVPReq struct {
|
|||||||
func (x *BattlePVPReq) Reset() {
|
func (x *BattlePVPReq) Reset() {
|
||||||
*x = BattlePVPReq{}
|
*x = BattlePVPReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[4]
|
mi := &file_battle_battle_msg_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -311,7 +383,7 @@ func (x *BattlePVPReq) String() string {
|
|||||||
func (*BattlePVPReq) ProtoMessage() {}
|
func (*BattlePVPReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *BattlePVPReq) ProtoReflect() protoreflect.Message {
|
func (x *BattlePVPReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[4]
|
mi := &file_battle_battle_msg_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -324,7 +396,7 @@ func (x *BattlePVPReq) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use BattlePVPReq.ProtoReflect.Descriptor instead.
|
// Deprecated: Use BattlePVPReq.ProtoReflect.Descriptor instead.
|
||||||
func (*BattlePVPReq) Descriptor() ([]byte, []int) {
|
func (*BattlePVPReq) Descriptor() ([]byte, []int) {
|
||||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{4}
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattlePVPReq) GetPtype() PlayType {
|
func (x *BattlePVPReq) GetPtype() PlayType {
|
||||||
@ -374,7 +446,7 @@ type BattleInfo struct {
|
|||||||
func (x *BattleInfo) Reset() {
|
func (x *BattleInfo) Reset() {
|
||||||
*x = BattleInfo{}
|
*x = BattleInfo{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[5]
|
mi := &file_battle_battle_msg_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -387,7 +459,7 @@ func (x *BattleInfo) String() string {
|
|||||||
func (*BattleInfo) ProtoMessage() {}
|
func (*BattleInfo) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *BattleInfo) ProtoReflect() protoreflect.Message {
|
func (x *BattleInfo) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[5]
|
mi := &file_battle_battle_msg_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -400,7 +472,7 @@ func (x *BattleInfo) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use BattleInfo.ProtoReflect.Descriptor instead.
|
// Deprecated: Use BattleInfo.ProtoReflect.Descriptor instead.
|
||||||
func (*BattleInfo) Descriptor() ([]byte, []int) {
|
func (*BattleInfo) Descriptor() ([]byte, []int) {
|
||||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{5}
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattleInfo) GetId() string {
|
func (x *BattleInfo) GetId() string {
|
||||||
@ -473,7 +545,7 @@ type BattleReport struct {
|
|||||||
func (x *BattleReport) Reset() {
|
func (x *BattleReport) Reset() {
|
||||||
*x = BattleReport{}
|
*x = BattleReport{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[6]
|
mi := &file_battle_battle_msg_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -486,7 +558,7 @@ func (x *BattleReport) String() string {
|
|||||||
func (*BattleReport) ProtoMessage() {}
|
func (*BattleReport) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *BattleReport) ProtoReflect() protoreflect.Message {
|
func (x *BattleReport) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_battle_battle_msg_proto_msgTypes[6]
|
mi := &file_battle_battle_msg_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -499,7 +571,7 @@ func (x *BattleReport) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use BattleReport.ProtoReflect.Descriptor instead.
|
// Deprecated: Use BattleReport.ProtoReflect.Descriptor instead.
|
||||||
func (*BattleReport) Descriptor() ([]byte, []int) {
|
func (*BattleReport) Descriptor() ([]byte, []int) {
|
||||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{6}
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattleReport) GetInfo() *BattleInfo {
|
func (x *BattleReport) GetInfo() *BattleInfo {
|
||||||
@ -540,57 +612,65 @@ var file_battle_battle_msg_proto_rawDesc = []byte{
|
|||||||
0x6f, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x03,
|
0x6f, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x03,
|
||||||
0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72,
|
0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72,
|
||||||
0x69, 0x65, 0x6e, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
|
0x69, 0x65, 0x6e, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
|
||||||
0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x89,
|
0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x83,
|
||||||
0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x56, 0x45, 0x52, 0x65, 0x71, 0x12,
|
0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x45, 0x56, 0x45, 0x52, 0x65, 0x71, 0x12,
|
||||||
0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
|
0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
|
||||||
0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65,
|
0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65,
|
||||||
0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f, 0x72,
|
||||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46,
|
0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f,
|
||||||
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28,
|
0x61, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f,
|
||||||
0x05, 0x52, 0x07, 0x6d, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x5b, 0x0a, 0x0c, 0x50, 0x56,
|
0x72, 0x6d, 0x61, 0x74, 0x22, 0x89, 0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x50,
|
||||||
0x50, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
|
0x56, 0x45, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07,
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52,
|
||||||
0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6c,
|
0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,
|
||||||
0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x12, 0x1f, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x06,
|
||||||
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52,
|
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42,
|
||||||
0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74,
|
0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06,
|
||||||
0x6c, 0x65, 0x50, 0x56, 0x50, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70,
|
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x66, 0x6f, 0x72, 0x6d, 0x61,
|
||||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79,
|
0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
||||||
0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
|
0x22, 0x5b, 0x0a, 0x0c, 0x50, 0x56, 0x50, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||||
0x2b, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01,
|
0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20,
|
||||||
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x50, 0x56, 0x50, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
|
0x01, 0x28, 0x05, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x12, 0x1f, 0x0a, 0x06,
|
||||||
0x6e, 0x52, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x2d, 0x0a, 0x0a,
|
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44,
|
||||||
0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0xa1, 0x01,
|
||||||
0x32, 0x0d, 0x2e, 0x50, 0x56, 0x50, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x50, 0x56, 0x50, 0x52, 0x65, 0x71, 0x12, 0x1f,
|
||||||
0x0a, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x8e, 0x02, 0x0a, 0x0a,
|
0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e,
|
||||||
0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x12,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
|
0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||||
0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
|
0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
0x12, 0x21, 0x0a, 0x05, 0x62, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x50, 0x56, 0x50, 0x46, 0x6f,
|
||||||
0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x62, 0x74,
|
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x64, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
|
0x61, 0x74, 0x12, 0x2d, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
||||||
0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70,
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x50, 0x56, 0x50, 0x46, 0x6f, 0x72, 0x6d,
|
||||||
0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x49,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x61,
|
||||||
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70,
|
0x74, 0x22, 0x8e, 0x02, 0x0a, 0x0a, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f,
|
||||||
0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06,
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46,
|
0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x6f, 0x72, 0x6d, 0x74, 0x52, 0x08, 0x72, 0x65, 0x64, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1e,
|
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x62, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||||
0x0a, 0x0a, 0x62, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01,
|
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79,
|
||||||
0x28, 0x09, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x12, 0x2c,
|
0x70, 0x65, 0x52, 0x05, 0x62, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79,
|
||||||
0x0a, 0x09, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28,
|
0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54,
|
||||||
0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d,
|
0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65,
|
||||||
0x74, 0x52, 0x09, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x65, 0x0a, 0x0c,
|
0x64, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72,
|
||||||
0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x04,
|
0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x66,
|
||||||
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74,
|
0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x42,
|
||||||
0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a,
|
0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x74, 0x52, 0x08, 0x72, 0x65, 0x64, 0x66,
|
||||||
0x08, 0x43, 0x6f, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
0x6c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x70,
|
||||||
0x08, 0x43, 0x6f, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f,
|
0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x65, 0x43, 0x6f,
|
||||||
0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63,
|
0x6d, 0x70, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x09, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6c, 0x69, 0x73,
|
||||||
0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74,
|
||||||
0x74, 0x6f, 0x33,
|
0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x74, 0x52, 0x09, 0x62, 0x75, 0x6c, 0x65, 0x66, 0x6c, 0x69,
|
||||||
|
0x73, 0x74, 0x22, 0x65, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f,
|
||||||
|
0x72, 0x74, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||||
|
0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69,
|
||||||
|
0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6f, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x43, 0x6f, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x12,
|
||||||
|
0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
||||||
|
0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
||||||
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -605,37 +685,39 @@ func file_battle_battle_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_battle_battle_msg_proto_rawDescData
|
return file_battle_battle_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
var file_battle_battle_msg_proto_goTypes = []interface{}{
|
var file_battle_battle_msg_proto_goTypes = []interface{}{
|
||||||
(*LineUp)(nil), // 0: LineUp
|
(*LineUp)(nil), // 0: LineUp
|
||||||
(*BattleFormation)(nil), // 1: BattleFormation
|
(*BattleFormation)(nil), // 1: BattleFormation
|
||||||
(*BattlePVEReq)(nil), // 2: BattlePVEReq
|
(*BattleEVEReq)(nil), // 2: BattleEVEReq
|
||||||
(*PVPFormation)(nil), // 3: PVPFormation
|
(*BattlePVEReq)(nil), // 3: BattlePVEReq
|
||||||
(*BattlePVPReq)(nil), // 4: BattlePVPReq
|
(*PVPFormation)(nil), // 4: PVPFormation
|
||||||
(*BattleInfo)(nil), // 5: BattleInfo
|
(*BattlePVPReq)(nil), // 5: BattlePVPReq
|
||||||
(*BattleReport)(nil), // 6: BattleReport
|
(*BattleInfo)(nil), // 6: BattleInfo
|
||||||
(PlayType)(0), // 7: PlayType
|
(*BattleReport)(nil), // 7: BattleReport
|
||||||
(*DBHero)(nil), // 8: DBHero
|
(PlayType)(0), // 8: PlayType
|
||||||
(BattleType)(0), // 9: BattleType
|
(*DBHero)(nil), // 9: DBHero
|
||||||
(*DBBattleFormt)(nil), // 10: DBBattleFormt
|
(BattleType)(0), // 10: BattleType
|
||||||
|
(*DBBattleFormt)(nil), // 11: DBBattleFormt
|
||||||
}
|
}
|
||||||
var file_battle_battle_msg_proto_depIdxs = []int32{
|
var file_battle_battle_msg_proto_depIdxs = []int32{
|
||||||
7, // 0: BattlePVEReq.ptype:type_name -> PlayType
|
8, // 0: BattleEVEReq.ptype:type_name -> PlayType
|
||||||
1, // 1: BattlePVEReq.format:type_name -> BattleFormation
|
8, // 1: BattlePVEReq.ptype:type_name -> PlayType
|
||||||
8, // 2: PVPFormation.format:type_name -> DBHero
|
1, // 2: BattlePVEReq.format:type_name -> BattleFormation
|
||||||
7, // 3: BattlePVPReq.ptype:type_name -> PlayType
|
9, // 3: PVPFormation.format:type_name -> DBHero
|
||||||
3, // 4: BattlePVPReq.redformat:type_name -> PVPFormation
|
8, // 4: BattlePVPReq.ptype:type_name -> PlayType
|
||||||
3, // 5: BattlePVPReq.buleformat:type_name -> PVPFormation
|
4, // 5: BattlePVPReq.redformat:type_name -> PVPFormation
|
||||||
9, // 6: BattleInfo.btype:type_name -> BattleType
|
4, // 6: BattlePVPReq.buleformat:type_name -> PVPFormation
|
||||||
7, // 7: BattleInfo.ptype:type_name -> PlayType
|
10, // 7: BattleInfo.btype:type_name -> BattleType
|
||||||
10, // 8: BattleInfo.redflist:type_name -> DBBattleFormt
|
8, // 8: BattleInfo.ptype:type_name -> PlayType
|
||||||
10, // 9: BattleInfo.buleflist:type_name -> DBBattleFormt
|
11, // 9: BattleInfo.redflist:type_name -> DBBattleFormt
|
||||||
5, // 10: BattleReport.info:type_name -> BattleInfo
|
11, // 10: BattleInfo.buleflist:type_name -> DBBattleFormt
|
||||||
11, // [11:11] is the sub-list for method output_type
|
6, // 11: BattleReport.info:type_name -> BattleInfo
|
||||||
11, // [11:11] is the sub-list for method input_type
|
12, // [12:12] is the sub-list for method output_type
|
||||||
11, // [11:11] is the sub-list for extension type_name
|
12, // [12:12] is the sub-list for method input_type
|
||||||
11, // [11:11] is the sub-list for extension extendee
|
12, // [12:12] is the sub-list for extension type_name
|
||||||
0, // [0:11] is the sub-list for field type_name
|
12, // [12:12] is the sub-list for extension extendee
|
||||||
|
0, // [0:12] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_battle_battle_msg_proto_init() }
|
func init() { file_battle_battle_msg_proto_init() }
|
||||||
@ -671,7 +753,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_battle_battle_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_battle_battle_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*BattlePVEReq); i {
|
switch v := v.(*BattleEVEReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -683,7 +765,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_battle_battle_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_battle_battle_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*PVPFormation); i {
|
switch v := v.(*BattlePVEReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -695,7 +777,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_battle_battle_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_battle_battle_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*BattlePVPReq); i {
|
switch v := v.(*PVPFormation); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -707,7 +789,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_battle_battle_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_battle_battle_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*BattleInfo); i {
|
switch v := v.(*BattlePVPReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -719,6 +801,18 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_battle_battle_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_battle_battle_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BattleInfo); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_battle_battle_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*BattleReport); i {
|
switch v := v.(*BattleReport); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@ -737,7 +831,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_battle_battle_msg_proto_rawDesc,
|
RawDescriptor: file_battle_battle_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 7,
|
NumMessages: 8,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
@ -256,7 +256,8 @@ type HoroscopeResetResp struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"`
|
Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"`
|
||||||
|
Info *DBHoroscope `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HoroscopeResetResp) Reset() {
|
func (x *HoroscopeResetResp) Reset() {
|
||||||
@ -298,6 +299,13 @@ func (x *HoroscopeResetResp) GetIssucc() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *HoroscopeResetResp) GetInfo() *DBHoroscope {
|
||||||
|
if x != nil {
|
||||||
|
return x.Info
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_horoscope_horoscope_msg_proto protoreflect.FileDescriptor
|
var File_horoscope_horoscope_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_horoscope_horoscope_msg_proto_rawDesc = []byte{
|
var file_horoscope_horoscope_msg_proto_rawDesc = []byte{
|
||||||
@ -317,10 +325,12 @@ var file_horoscope_horoscope_msg_proto_rawDesc = []byte{
|
|||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
|
||||||
0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x13, 0x0a, 0x11, 0x48,
|
0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x13, 0x0a, 0x11, 0x48,
|
||||||
0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71,
|
0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71,
|
||||||
0x22, 0x2c, 0x0a, 0x12, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73,
|
0x22, 0x4e, 0x0a, 0x12, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73,
|
||||||
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63,
|
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x42, 0x06,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x12, 0x20,
|
||||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44,
|
||||||
|
0x42, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f,
|
||||||
|
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -347,11 +357,12 @@ var file_horoscope_horoscope_msg_proto_goTypes = []interface{}{
|
|||||||
}
|
}
|
||||||
var file_horoscope_horoscope_msg_proto_depIdxs = []int32{
|
var file_horoscope_horoscope_msg_proto_depIdxs = []int32{
|
||||||
6, // 0: HoroscopeInfoResp.info:type_name -> DBHoroscope
|
6, // 0: HoroscopeInfoResp.info:type_name -> DBHoroscope
|
||||||
1, // [1:1] is the sub-list for method output_type
|
6, // 1: HoroscopeResetResp.info:type_name -> DBHoroscope
|
||||||
1, // [1:1] is the sub-list for method input_type
|
2, // [2:2] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
2, // [2:2] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
0, // [0:1] is the sub-list for field type_name
|
2, // [2:2] is the sub-list for extension extendee
|
||||||
|
0, // [0:2] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_horoscope_horoscope_msg_proto_init() }
|
func init() { file_horoscope_horoscope_msg_proto_init() }
|
||||||
|
@ -92,6 +92,62 @@ func (x *DBPayOrder) GetCtime() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//用户重置数据表
|
||||||
|
type DBPayUser struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` //用户id
|
||||||
|
Goods map[string]int32 `protobuf:"bytes,2,rep,name=goods,proto3" json:"goods" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //商品购买次数
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPayUser) Reset() {
|
||||||
|
*x = DBPayUser{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pay_pay_db_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPayUser) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBPayUser) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBPayUser) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pay_pay_db_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DBPayUser.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBPayUser) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pay_pay_db_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPayUser) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBPayUser) GetGoods() map[string]int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Goods
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_pay_pay_db_proto protoreflect.FileDescriptor
|
var File_pay_pay_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_pay_pay_db_proto_rawDesc = []byte{
|
var file_pay_pay_db_proto_rawDesc = []byte{
|
||||||
@ -103,7 +159,16 @@ var file_pay_pay_db_proto_rawDesc = []byte{
|
|||||||
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74,
|
0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74,
|
||||||
0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x22, 0x84, 0x01, 0x0a, 0x09, 0x44, 0x42, 0x50, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x12, 0x10,
|
||||||
|
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
||||||
|
0x12, 0x2b, 0x0a, 0x05, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
|
0x15, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x6f, 0x64,
|
||||||
|
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x1a, 0x38, 0x0a,
|
||||||
|
0x0a, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||||
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||||
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61,
|
||||||
|
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
||||||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -118,16 +183,19 @@ func file_pay_pay_db_proto_rawDescGZIP() []byte {
|
|||||||
return file_pay_pay_db_proto_rawDescData
|
return file_pay_pay_db_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_pay_pay_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
var file_pay_pay_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||||
var file_pay_pay_db_proto_goTypes = []interface{}{
|
var file_pay_pay_db_proto_goTypes = []interface{}{
|
||||||
(*DBPayOrder)(nil), // 0: DBPayOrder
|
(*DBPayOrder)(nil), // 0: DBPayOrder
|
||||||
|
(*DBPayUser)(nil), // 1: DBPayUser
|
||||||
|
nil, // 2: DBPayUser.GoodsEntry
|
||||||
}
|
}
|
||||||
var file_pay_pay_db_proto_depIdxs = []int32{
|
var file_pay_pay_db_proto_depIdxs = []int32{
|
||||||
0, // [0:0] is the sub-list for method output_type
|
2, // 0: DBPayUser.goods:type_name -> DBPayUser.GoodsEntry
|
||||||
0, // [0:0] is the sub-list for method input_type
|
1, // [1:1] is the sub-list for method output_type
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
1, // [1:1] is the sub-list for method input_type
|
||||||
0, // [0:0] is the sub-list for extension extendee
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
0, // [0:0] is the sub-list for field type_name
|
1, // [1:1] is the sub-list for extension extendee
|
||||||
|
0, // [0:1] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_pay_pay_db_proto_init() }
|
func init() { file_pay_pay_db_proto_init() }
|
||||||
@ -148,6 +216,18 @@ func file_pay_pay_db_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_pay_pay_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBPayUser); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -155,7 +235,7 @@ func file_pay_pay_db_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_pay_pay_db_proto_rawDesc,
|
RawDescriptor: file_pay_pay_db_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 1,
|
NumMessages: 3,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
@ -2621,6 +2621,110 @@ func (x *SociatyRankResp) GetRank() []*DBSociatyRank {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 公会解散推送
|
||||||
|
type SociatyPDismissPush struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
SociatyId string `protobuf:"bytes,1,opt,name=sociatyId,proto3" json:"sociatyId"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPDismissPush) Reset() {
|
||||||
|
*x = SociatyPDismissPush{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_sociaty_sociaty_msg_proto_msgTypes[51]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPDismissPush) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SociatyPDismissPush) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SociatyPDismissPush) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_sociaty_sociaty_msg_proto_msgTypes[51]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SociatyPDismissPush.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SociatyPDismissPush) Descriptor() ([]byte, []int) {
|
||||||
|
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{51}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPDismissPush) GetSociatyId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.SociatyId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审核通过推送
|
||||||
|
type SociatyPAgreePush struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
|
||||||
|
SociatyId string `protobuf:"bytes,2,opt,name=sociatyId,proto3" json:"sociatyId"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPAgreePush) Reset() {
|
||||||
|
*x = SociatyPAgreePush{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_sociaty_sociaty_msg_proto_msgTypes[52]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPAgreePush) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SociatyPAgreePush) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SociatyPAgreePush) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_sociaty_sociaty_msg_proto_msgTypes[52]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SociatyPAgreePush.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SociatyPAgreePush) Descriptor() ([]byte, []int) {
|
||||||
|
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{52}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPAgreePush) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SociatyPAgreePush) GetSociatyId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.SociatyId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
var File_sociaty_sociaty_msg_proto protoreflect.FileDescriptor
|
var File_sociaty_sociaty_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_sociaty_sociaty_msg_proto_rawDesc = []byte{
|
var file_sociaty_sociaty_msg_proto_rawDesc = []byte{
|
||||||
@ -2810,13 +2914,20 @@ var file_sociaty_sociaty_msg_proto_rawDesc = []byte{
|
|||||||
0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x22, 0x35, 0x0a, 0x0f, 0x53, 0x6f, 0x63, 0x69,
|
0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x22, 0x35, 0x0a, 0x0f, 0x53, 0x6f, 0x63, 0x69,
|
||||||
0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x04, 0x72,
|
0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x04, 0x72,
|
||||||
0x61, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x53, 0x6f,
|
0x61, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x53, 0x6f,
|
||||||
0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x2a,
|
0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x22,
|
||||||
0x42, 0x0a, 0x11, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69,
|
0x33, 0x0a, 0x13, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x50, 0x44, 0x69, 0x73, 0x6d, 0x69,
|
||||||
0x6c, 0x74, 0x65, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a,
|
0x73, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74,
|
||||||
0x05, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x41, 0x50,
|
0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61,
|
||||||
0x50, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e,
|
0x74, 0x79, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x11, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x50,
|
||||||
0x47, 0x10, 0x03, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x41, 0x67, 0x72, 0x65, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x74, 0x6f, 0x33,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73,
|
||||||
|
0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
||||||
|
0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x2a, 0x42, 0x0a, 0x11, 0x53, 0x6f, 0x63,
|
||||||
|
0x69, 0x61, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x07,
|
||||||
|
0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x4e, 0x44, 0x49,
|
||||||
|
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x10, 0x02, 0x12,
|
||||||
|
0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x42, 0x06, 0x5a,
|
||||||
|
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -2832,7 +2943,7 @@ func file_sociaty_sociaty_msg_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_sociaty_sociaty_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_sociaty_sociaty_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_sociaty_sociaty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 51)
|
var file_sociaty_sociaty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 53)
|
||||||
var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{
|
var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{
|
||||||
(SociatyListFilter)(0), // 0: SociatyListFilter
|
(SociatyListFilter)(0), // 0: SociatyListFilter
|
||||||
(*SociatyCreateReq)(nil), // 1: SociatyCreateReq
|
(*SociatyCreateReq)(nil), // 1: SociatyCreateReq
|
||||||
@ -2886,28 +2997,30 @@ var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{
|
|||||||
(*SociatyActivityReceiveResp)(nil), // 49: SociatyActivityReceiveResp
|
(*SociatyActivityReceiveResp)(nil), // 49: SociatyActivityReceiveResp
|
||||||
(*SociatyRankReq)(nil), // 50: SociatyRankReq
|
(*SociatyRankReq)(nil), // 50: SociatyRankReq
|
||||||
(*SociatyRankResp)(nil), // 51: SociatyRankResp
|
(*SociatyRankResp)(nil), // 51: SociatyRankResp
|
||||||
(*DBSociaty)(nil), // 52: DBSociaty
|
(*SociatyPDismissPush)(nil), // 52: SociatyPDismissPush
|
||||||
(SociatyJob)(0), // 53: SociatyJob
|
(*SociatyPAgreePush)(nil), // 53: SociatyPAgreePush
|
||||||
(*DBSociatyLog)(nil), // 54: DBSociatyLog
|
(*DBSociaty)(nil), // 54: DBSociaty
|
||||||
(*SociatyTask)(nil), // 55: SociatyTask
|
(SociatyJob)(0), // 55: SociatyJob
|
||||||
(*SociatyActivity)(nil), // 56: SociatyActivity
|
(*DBSociatyLog)(nil), // 56: DBSociatyLog
|
||||||
(*DBSociatyRank)(nil), // 57: DBSociatyRank
|
(*SociatyTask)(nil), // 57: SociatyTask
|
||||||
|
(*SociatyActivity)(nil), // 58: SociatyActivity
|
||||||
|
(*DBSociatyRank)(nil), // 59: DBSociatyRank
|
||||||
}
|
}
|
||||||
var file_sociaty_sociaty_msg_proto_depIdxs = []int32{
|
var file_sociaty_sociaty_msg_proto_depIdxs = []int32{
|
||||||
0, // 0: SociatyListReq.filter:type_name -> SociatyListFilter
|
0, // 0: SociatyListReq.filter:type_name -> SociatyListFilter
|
||||||
52, // 1: SociatyListResp.list:type_name -> DBSociaty
|
54, // 1: SociatyListResp.list:type_name -> DBSociaty
|
||||||
52, // 2: SociatySearchResp.list:type_name -> DBSociaty
|
54, // 2: SociatySearchResp.list:type_name -> DBSociaty
|
||||||
52, // 3: SociatyMineResp.sociaty:type_name -> DBSociaty
|
54, // 3: SociatyMineResp.sociaty:type_name -> DBSociaty
|
||||||
11, // 4: SociatyMineResp.master:type_name -> SociatyMemberInfo
|
11, // 4: SociatyMineResp.master:type_name -> SociatyMemberInfo
|
||||||
53, // 5: SociatyMemberInfo.job:type_name -> SociatyJob
|
55, // 5: SociatyMemberInfo.job:type_name -> SociatyJob
|
||||||
11, // 6: SociatyApplyListResp.list:type_name -> SociatyMemberInfo
|
11, // 6: SociatyApplyListResp.list:type_name -> SociatyMemberInfo
|
||||||
11, // 7: SociatyMembersResp.list:type_name -> SociatyMemberInfo
|
11, // 7: SociatyMembersResp.list:type_name -> SociatyMemberInfo
|
||||||
53, // 8: SociatySettingJobReq.job:type_name -> SociatyJob
|
55, // 8: SociatySettingJobReq.job:type_name -> SociatyJob
|
||||||
53, // 9: SociatySettingJobResp.job:type_name -> SociatyJob
|
55, // 9: SociatySettingJobResp.job:type_name -> SociatyJob
|
||||||
54, // 10: SociatyLogResp.log:type_name -> DBSociatyLog
|
56, // 10: SociatyLogResp.log:type_name -> DBSociatyLog
|
||||||
55, // 11: SociatyTaskListResp.list:type_name -> SociatyTask
|
57, // 11: SociatyTaskListResp.list:type_name -> SociatyTask
|
||||||
56, // 12: SociatyActivityListResp.list:type_name -> SociatyActivity
|
58, // 12: SociatyActivityListResp.list:type_name -> SociatyActivity
|
||||||
57, // 13: SociatyRankResp.rank:type_name -> DBSociatyRank
|
59, // 13: SociatyRankResp.rank:type_name -> DBSociatyRank
|
||||||
14, // [14:14] is the sub-list for method output_type
|
14, // [14:14] is the sub-list for method output_type
|
||||||
14, // [14:14] is the sub-list for method input_type
|
14, // [14:14] is the sub-list for method input_type
|
||||||
14, // [14:14] is the sub-list for extension type_name
|
14, // [14:14] is the sub-list for extension type_name
|
||||||
@ -3534,6 +3647,30 @@ func file_sociaty_sociaty_msg_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_sociaty_sociaty_msg_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SociatyPDismissPush); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_sociaty_sociaty_msg_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SociatyPAgreePush); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -3541,7 +3678,7 @@ func file_sociaty_sociaty_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_sociaty_sociaty_msg_proto_rawDesc,
|
RawDescriptor: file_sociaty_sociaty_msg_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 1,
|
||||||
NumMessages: 51,
|
NumMessages: 53,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
107
pb/user_db.pb.go
107
pb/user_db.pb.go
@ -117,14 +117,16 @@ type DBUser struct {
|
|||||||
Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar" bson:"avatar"` //头像
|
Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar" bson:"avatar"` //头像
|
||||||
Gold int64 `protobuf:"varint,13,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币
|
Gold int64 `protobuf:"varint,13,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币
|
||||||
Exp int64 `protobuf:"varint,14,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验
|
Exp int64 `protobuf:"varint,14,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验
|
||||||
Created bool `protobuf:"varint,15,opt,name=created,proto3" json:"created" bson:"created"` //创角
|
Vipexp int64 `protobuf:"varint,15,opt,name=vipexp,proto3" json:"vipexp" bson:"vipexp"` //vip经验
|
||||||
Lv int32 `protobuf:"varint,16,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级
|
Starcoin int64 `protobuf:"varint,16,opt,name=starcoin,proto3" json:"starcoin" bson:"starcoin"` //星座图币
|
||||||
Vip int32 `protobuf:"varint,17,opt,name=vip,proto3" json:"vip" bson:"vip"` // vip
|
Created bool `protobuf:"varint,17,opt,name=created,proto3" json:"created" bson:"created"` //创角
|
||||||
Diamond int64 `protobuf:"varint,18,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石
|
Lv int32 `protobuf:"varint,18,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级
|
||||||
Title int32 `protobuf:"varint,19,opt,name=title,proto3" json:"title"` //@go_tags(`bson:"title"`)头衔
|
Vip int32 `protobuf:"varint,19,opt,name=vip,proto3" json:"vip" bson:"vip"` // vip
|
||||||
Offlinetime int64 `protobuf:"varint,11,opt,name=offlinetime,proto3" json:"offlinetime" bson:"offlinetime"` //离线时间
|
Diamond int64 `protobuf:"varint,20,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石
|
||||||
Figure int32 `protobuf:"varint,20,opt,name=figure,proto3" json:"figure" bson:"figure"` //主角形象
|
Title int32 `protobuf:"varint,21,opt,name=title,proto3" json:"title"` //@go_tags(`bson:"title"`)头衔
|
||||||
Bgp string `protobuf:"bytes,21,opt,name=bgp,proto3" json:"bgp" bson:"bgp"` //背景
|
Offlinetime int64 `protobuf:"varint,22,opt,name=offlinetime,proto3" json:"offlinetime" bson:"offlinetime"` //离线时间
|
||||||
|
Figure int32 `protobuf:"varint,23,opt,name=figure,proto3" json:"figure" bson:"figure"` //主角形象
|
||||||
|
Bgp string `protobuf:"bytes,24,opt,name=bgp,proto3" json:"bgp" bson:"bgp"` //背景
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBUser) Reset() {
|
func (x *DBUser) Reset() {
|
||||||
@ -250,6 +252,20 @@ func (x *DBUser) GetExp() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *DBUser) GetVipexp() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Vipexp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBUser) GetStarcoin() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Starcoin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
func (x *DBUser) GetCreated() bool {
|
func (x *DBUser) GetCreated() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Created
|
return x.Created
|
||||||
@ -462,8 +478,8 @@ var file_user_user_db_proto_rawDesc = []byte{
|
|||||||
0x61, 0x67, 0x12, 0x2a, 0x0a, 0x10, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72,
|
0x61, 0x67, 0x12, 0x2a, 0x0a, 0x10, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72,
|
||||||
0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x47, 0x61,
|
0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x47, 0x61,
|
||||||
0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e,
|
0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e,
|
||||||
0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0xe6,
|
0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x9a,
|
||||||
0x03, 0x0a, 0x06, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
0x04, 0x0a, 0x06, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75,
|
||||||
0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12,
|
0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12,
|
||||||
@ -482,40 +498,43 @@ var file_user_user_db_proto_rawDesc = []byte{
|
|||||||
0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6c,
|
0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6c,
|
||||||
0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, 0x10, 0x0a,
|
0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, 0x10, 0x0a,
|
||||||
0x03, 0x65, 0x78, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12,
|
0x03, 0x65, 0x78, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12,
|
||||||
0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08,
|
0x16, 0x0a, 0x06, 0x76, 0x69, 0x70, 0x65, 0x78, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||||
0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18,
|
0x06, 0x76, 0x69, 0x70, 0x65, 0x78, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x63,
|
||||||
0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70,
|
0x6f, 0x69, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x63,
|
||||||
0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x64,
|
0x6f, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x11,
|
||||||
0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x69,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a,
|
||||||
0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x13,
|
0x02, 0x6c, 0x76, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a,
|
||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6f,
|
0x03, 0x76, 0x69, 0x70, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12,
|
||||||
0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03,
|
0x18, 0x0a, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03,
|
||||||
0x52, 0x0b, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a,
|
0x52, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
|
||||||
0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66,
|
0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
|
||||||
0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x67, 0x70, 0x18, 0x15, 0x20, 0x01,
|
0x20, 0x0a, 0x0b, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x16,
|
||||||
0x28, 0x09, 0x52, 0x03, 0x62, 0x67, 0x70, 0x22, 0xc7, 0x02, 0x0a, 0x0d, 0x44, 0x42, 0x55, 0x73,
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x74, 0x69, 0x6d,
|
||||||
0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68,
|
0x05, 0x52, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x67, 0x70,
|
||||||
0x75, 0x61, 0x7a, 0x68, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x75, 0x61,
|
0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x67, 0x70, 0x22, 0xc7, 0x02, 0x0a, 0x0d,
|
||||||
0x7a, 0x68, 0x69, 0x12, 0x1c, 0x0a, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68, 0x69,
|
0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a,
|
||||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68,
|
0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12,
|
||||||
0x69, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x18, 0x05, 0x20,
|
0x16, 0x0a, 0x06, 0x68, 0x75, 0x61, 0x7a, 0x68, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x12, 0x12, 0x0a,
|
0x06, 0x68, 0x75, 0x61, 0x7a, 0x68, 0x69, 0x12, 0x1c, 0x0a, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a,
|
||||||
0x04, 0x77, 0x75, 0x6c, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x77, 0x75, 0x6c,
|
0x75, 0x63, 0x68, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6b, 0x61, 0x6e, 0x67,
|
||||||
0x69, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08,
|
0x6a, 0x75, 0x63, 0x68, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e,
|
||||||
0x52, 0x05, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63,
|
0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e,
|
||||||
0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12,
|
0x67, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x75, 0x6c, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||||
0x14, 0x0a, 0x05, 0x67, 0x75, 0x61, 0x6a, 0x69, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
0x04, 0x77, 0x75, 0x6c, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x18, 0x07,
|
||||||
0x67, 0x75, 0x61, 0x6a, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x18, 0x0a,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x65,
|
||||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x74,
|
0x66, 0x66, 0x65, 0x63, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x66, 0x66,
|
||||||
0x61, 0x6e, 0x73, 0x75, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x61, 0x6e,
|
0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x75, 0x61, 0x6a, 0x69, 0x18, 0x09, 0x20, 0x01,
|
||||||
0x73, 0x75, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x18, 0x0c,
|
0x28, 0x08, 0x52, 0x05, 0x67, 0x75, 0x61, 0x6a, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x75, 0x62,
|
||||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x12, 0x1c, 0x0a,
|
0x65, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x12,
|
||||||
0x09, 0x78, 0x75, 0x61, 0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08,
|
0x16, 0x0a, 0x06, 0x74, 0x61, 0x6e, 0x73, 0x75, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||||
0x52, 0x09, 0x78, 0x75, 0x61, 0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x73,
|
0x06, 0x74, 0x61, 0x6e, 0x73, 0x75, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f,
|
||||||
0x61, 0x69, 0x6a, 0x69, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x61, 0x69, 0x6a,
|
0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e,
|
||||||
0x69, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x67, 0x12, 0x1c, 0x0a, 0x09, 0x78, 0x75, 0x61, 0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x18, 0x0d,
|
||||||
0x33,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x78, 0x75, 0x61, 0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x12,
|
||||||
|
0x14, 0x0a, 0x05, 0x73, 0x61, 0x69, 0x6a, 0x69, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
||||||
|
0x73, 0x61, 0x69, 0x6a, 0x69, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -577,10 +577,12 @@ type UserResChangedPush struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Gold int64 `protobuf:"varint,1,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币
|
Gold int64 `protobuf:"varint,1,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币
|
||||||
Exp int64 `protobuf:"varint,2,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验
|
Exp int64 `protobuf:"varint,2,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验
|
||||||
Diamond int64 `protobuf:"varint,5,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石
|
Vipexp int64 `protobuf:"varint,3,opt,name=vipexp,proto3" json:"vipexp" bson:"vipexp"` //经验
|
||||||
Friend int32 `protobuf:"varint,6,opt,name=friend,proto3" json:"friend" bson:"frined"` //友情点
|
Diamond int64 `protobuf:"varint,4,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石
|
||||||
|
Friend int32 `protobuf:"varint,5,opt,name=friend,proto3" json:"friend" bson:"frined"` //友情点
|
||||||
|
Starcoin int64 `protobuf:"varint,6,opt,name=starcoin,proto3" json:"starcoin" bson:"starcoin"` //星座币
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserResChangedPush) Reset() {
|
func (x *UserResChangedPush) Reset() {
|
||||||
@ -629,6 +631,13 @@ func (x *UserResChangedPush) GetExp() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *UserResChangedPush) GetVipexp() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Vipexp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
func (x *UserResChangedPush) GetDiamond() int64 {
|
func (x *UserResChangedPush) GetDiamond() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Diamond
|
return x.Diamond
|
||||||
@ -643,6 +652,13 @@ func (x *UserResChangedPush) GetFriend() int32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *UserResChangedPush) GetStarcoin() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Starcoin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
//用户设置获取
|
//用户设置获取
|
||||||
type UserGetSettingReq struct {
|
type UserGetSettingReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -2209,118 +2225,121 @@ var file_user_user_msg_proto_rawDesc = []byte{
|
|||||||
0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x55,
|
0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x55,
|
||||||
0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a,
|
0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a,
|
||||||
0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49,
|
0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49,
|
||||||
0x73, 0x53, 0x75, 0x63, 0x63, 0x22, 0x6c, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
|
0x73, 0x53, 0x75, 0x63, 0x63, 0x22, 0xa0, 0x01, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
|
||||||
0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x67,
|
0x73, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04,
|
||||||
0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12,
|
0x67, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64,
|
||||||
0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x78,
|
0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65,
|
||||||
0x70, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01,
|
0x78, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x69, 0x70, 0x65, 0x78, 0x70, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x28, 0x03, 0x52, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66,
|
0x28, 0x03, 0x52, 0x06, 0x76, 0x69, 0x70, 0x65, 0x78, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69,
|
||||||
0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x72, 0x69,
|
0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x69, 0x61,
|
||||||
0x65, 0x6e, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65,
|
0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x05,
|
||||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x22, 0x3e, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72,
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28,
|
0x73, 0x74, 0x61, 0x72, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
|
||||||
0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x73, 0x74, 0x61, 0x72, 0x63, 0x6f, 0x69, 0x6e, 0x22, 0x13, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72,
|
||||||
0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x22, 0x3e, 0x0a,
|
||||||
0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x40, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72,
|
0x12, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
||||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
|
0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01,
|
||||||
0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74,
|
||||||
0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
|
0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x40, 0x0a,
|
||||||
0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x15, 0x55, 0x73,
|
0x14, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
|
||||||
0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
||||||
0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53,
|
||||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72,
|
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22,
|
||||||
0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x22, 0x26, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72,
|
0x29, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74,
|
||||||
0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04,
|
0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||||
0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x55, 0x73,
|
||||||
0x22, 0x25, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61,
|
0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x22, 0x26, 0x0a,
|
||||||
0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x10, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73,
|
||||||
0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x24, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x49,
|
0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x69,
|
||||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x27, 0x0a,
|
0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
||||||
0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x24, 0x0a, 0x10,
|
||||||
0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f,
|
|
||||||
0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03,
|
|
||||||
0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14,
|
|
||||||
0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63,
|
|
||||||
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
||||||
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72,
|
|
||||||
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x52, 0x65, 0x71, 0x12,
|
|
||||||
0x1a, 0x0a, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
||||||
0x09, 0x52, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x14, 0x55,
|
|
||||||
0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x52,
|
|
||||||
0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
||||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49,
|
|
||||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49,
|
|
||||||
0x64, 0x22, 0x28, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x62,
|
|
||||||
0x67, 0x70, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x18, 0x01,
|
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x11, 0x55,
|
|
||||||
0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x62, 0x67, 0x70, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||||
0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x69, 0x64, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79,
|
||||||
0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72,
|
0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x12, 0x55,
|
||||||
0x1a, 0x0a, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73,
|
||||||
0x05, 0x52, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x14, 0x55,
|
0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||||
0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52,
|
0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
|
||||||
0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
||||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49,
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a,
|
||||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49,
|
0x13, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x61, 0x76, 0x61, 0x74, 0x61,
|
||||||
0x64, 0x22, 0x12, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6a, 0x69,
|
0x72, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64,
|
||||||
0x61, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x2d, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64,
|
||||||
0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65,
|
0x22, 0x44, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x61, 0x76,
|
||||||
0x72, 0x6f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72,
|
0x61, 0x74, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||||
0x6f, 0x69, 0x64, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x76, 0x43, 0x68,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x76,
|
||||||
0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x76,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65,
|
0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x22, 0x28, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f,
|
||||||
0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x0e, 0x0a,
|
0x64, 0x69, 0x66, 0x79, 0x62, 0x67, 0x70, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x67,
|
||||||
0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x27, 0x0a,
|
0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64,
|
||||||
0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52,
|
0x22, 0x3b, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x62, 0x67,
|
||||||
0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x26, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f,
|
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64,
|
||||||
0x64, 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x22, 0x31, 0x0a,
|
||||||
0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x27,
|
0x13, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x66, 0x69, 0x67, 0x75, 0x72,
|
||||||
0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x72, 0x65, 0x63, 0x6f,
|
0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, 0x64,
|
||||||
0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, 0x64,
|
||||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0xf0, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72,
|
0x22, 0x44, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x66, 0x69,
|
||||||
0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
|
0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||||
0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69,
|
||||||
0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a,
|
0x67, 0x75, 0x72, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69,
|
||||||
0x02, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x55, 0x73,
|
0x67, 0x75, 0x72, 0x65, 0x49, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65,
|
||||||
0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x52, 0x02, 0x65, 0x78, 0x12, 0x33, 0x0a, 0x0c,
|
0x74, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x2d, 0x0a, 0x11, 0x55, 0x73,
|
||||||
0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01,
|
0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63,
|
0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
|
||||||
0x6f, 0x72, 0x64, 0x52, 0x0c, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x55, 0x73, 0x65,
|
||||||
0x64, 0x12, 0x34, 0x0a, 0x0d, 0x68, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f,
|
0x72, 0x4c, 0x76, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x10,
|
||||||
0x72, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e,
|
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x0d, 0x68, 0x75, 0x6e, 0x74, 0x69, 0x6e,
|
0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65,
|
||||||
0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x31, 0x0a, 0x0c, 0x76, 0x69, 0x6b, 0x69, 0x6e,
|
0x78, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02,
|
||||||
0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
0x6c, 0x76, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79,
|
||||||
0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x0c, 0x76, 0x69,
|
0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18,
|
||||||
0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x34, 0x0a, 0x12, 0x55, 0x73,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x26, 0x0a, 0x12, 0x55,
|
||||||
0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x74, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71,
|
0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x73, 0x18, 0x02,
|
0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x73,
|
0x75, 0x69, 0x64, 0x22, 0x27, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x74, 0x74, 0x6c,
|
||||||
0x22, 0x27, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x74,
|
0x65, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
|
||||||
0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01,
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0xf0, 0x01, 0x0a,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x55, 0x73, 0x65,
|
0x14, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x72, 0x65, 0x63, 0x6f, 0x72,
|
||||||
0x72, 0x53, 0x68, 0x6f, 0x77, 0x74, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x22, 0x32, 0x0a, 0x10,
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
|
||||||
0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x77, 0x74, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70,
|
0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x73, 0x18, 0x01,
|
0x74, 0x61, 0x12, 0x1d, 0x0a, 0x02, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
|
||||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x73,
|
0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x52, 0x02, 0x65,
|
||||||
0x22, 0x32, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65,
|
0x78, 0x12, 0x33, 0x0a, 0x0c, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
||||||
0x73, 0x70, 0x12, 0x20, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f,
|
||||||
0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75,
|
0x64, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x0c, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61,
|
||||||
0x73, 0x65, 0x72, 0x73, 0x22, 0x31, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61,
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x34, 0x0a, 0x0d, 0x68, 0x75, 0x6e, 0x74, 0x69, 0x6e,
|
||||||
0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72,
|
0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
|
||||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72,
|
0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x0d, 0x68,
|
||||||
0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x47,
|
0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x31, 0x0a, 0x0c,
|
||||||
0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x22,
|
0x76, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x03,
|
||||||
0x3a, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e,
|
||||||
0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
0x6b, 0x52, 0x0c, 0x76, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, 0x65,
|
0x34, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x74, 0x65,
|
||||||
0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
0x61, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a,
|
||||||
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f,
|
||||||
|
0x62, 0x6a, 0x49, 0x64, 0x73, 0x22, 0x27, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74,
|
||||||
|
0x74, 0x69, 0x6e, 0x67, 0x74, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03,
|
||||||
|
0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11,
|
||||||
|
0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x77, 0x74, 0x65, 0x61, 0x6d, 0x52, 0x65,
|
||||||
|
0x71, 0x22, 0x32, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x77, 0x74, 0x65, 0x61,
|
||||||
|
0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a,
|
||||||
|
0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x65, 0x72, 0x6f, 0x4f,
|
||||||
|
0x62, 0x6a, 0x49, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x6e, 0x6c,
|
||||||
|
0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73,
|
||||||
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x55, 0x73,
|
||||||
|
0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x31, 0x0a, 0x10, 0x55, 0x73, 0x65,
|
||||||
|
0x72, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a,
|
||||||
|
0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44,
|
||||||
|
0x42, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x16, 0x0a, 0x14,
|
||||||
|
0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74,
|
||||||
|
0x61, 0x52, 0x65, 0x71, 0x22, 0x3a, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53,
|
||||||
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a,
|
||||||
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42,
|
||||||
|
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||||
|
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameRecharge struct {
|
type GameRecharge struct {
|
||||||
_dataMap map[int32]*GameRechargeData
|
_dataMap map[string]*GameRechargeData
|
||||||
_dataList []*GameRechargeData
|
_dataList []*GameRechargeData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
|
func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
|
||||||
_dataList := make([]*GameRechargeData, 0, len(_buf))
|
_dataList := make([]*GameRechargeData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameRechargeData)
|
dataMap := make(map[string]*GameRechargeData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameRechargeData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameRechargeData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
@ -27,7 +27,7 @@ func NewGameRecharge(_buf []map[string]interface{}) (*GameRecharge, error) {
|
|||||||
return &GameRecharge{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameRecharge{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameRecharge) GetDataMap() map[int32]*GameRechargeData {
|
func (table *GameRecharge) GetDataMap() map[string]*GameRechargeData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ func (table *GameRecharge) GetDataList() []*GameRechargeData {
|
|||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameRecharge) Get(key int32) *GameRechargeData {
|
func (table *GameRecharge) Get(key string) *GameRechargeData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,16 +11,13 @@ package cfg
|
|||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameRechargeData struct {
|
type GameRechargeData struct {
|
||||||
Id int32
|
Id string
|
||||||
Editionid string
|
Editionid string
|
||||||
RechargeType int32
|
RechargeType int32
|
||||||
Monetaryunit string
|
Monetaryunit string
|
||||||
Amount string
|
Amount string
|
||||||
Vipexp string
|
Vipexp []*Gameatn
|
||||||
VipexpNum int32
|
DiamondNumDouble []*Gameatn
|
||||||
Diamond string
|
|
||||||
DiamondNum int32
|
|
||||||
DiamondNumDouble int32
|
|
||||||
Channel string
|
Channel string
|
||||||
Text string
|
Text string
|
||||||
Image string
|
Image string
|
||||||
@ -33,16 +30,39 @@ func (*GameRechargeData) GetTypeId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameRechargeData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameRechargeData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
||||||
{ var _ok_ bool; if _v.Editionid, _ok_ = _buf["editionid"].(string); !_ok_ { err = errors.New("editionid error"); return } }
|
{ var _ok_ bool; if _v.Editionid, _ok_ = _buf["editionid"].(string); !_ok_ { err = errors.New("editionid error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recharge_type"].(float64); !_ok_ { err = errors.New("recharge_type error"); return }; _v.RechargeType = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recharge_type"].(float64); !_ok_ { err = errors.New("recharge_type error"); return }; _v.RechargeType = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Monetaryunit, _ok_ = _buf["monetaryunit"].(string); !_ok_ { err = errors.New("monetaryunit error"); return } }
|
{ var _ok_ bool; if _v.Monetaryunit, _ok_ = _buf["monetaryunit"].(string); !_ok_ { err = errors.New("monetaryunit error"); return } }
|
||||||
{ var _ok_ bool; if _v.Amount, _ok_ = _buf["amount"].(string); !_ok_ { err = errors.New("amount error"); return } }
|
{ var _ok_ bool; if _v.Amount, _ok_ = _buf["amount"].(string); !_ok_ { err = errors.New("amount error"); return } }
|
||||||
{ var _ok_ bool; if _v.Vipexp, _ok_ = _buf["vipexp"].(string); !_ok_ { err = errors.New("vipexp error"); return } }
|
{
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["vipexp_num"].(float64); !_ok_ { err = errors.New("vipexp_num error"); return }; _v.VipexpNum = int32(_tempNum_) }
|
var _arr_ []interface{}
|
||||||
{ var _ok_ bool; if _v.Diamond, _ok_ = _buf["diamond"].(string); !_ok_ { err = errors.New("diamond error"); return } }
|
var _ok_ bool
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["diamond_num"].(float64); !_ok_ { err = errors.New("diamond_num error"); return }; _v.DiamondNum = int32(_tempNum_) }
|
if _arr_, _ok_ = _buf["vipexp"].([]interface{}); !_ok_ { err = errors.New("vipexp error"); return }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["diamond_num_double"].(float64); !_ok_ { err = errors.New("diamond_num_double error"); return }; _v.DiamondNumDouble = int32(_tempNum_) }
|
|
||||||
|
_v.Vipexp = make([]*Gameatn, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ *Gameatn
|
||||||
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
|
_v.Vipexp = append(_v.Vipexp, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["diamond_num_double"].([]interface{}); !_ok_ { err = errors.New("diamond_num_double error"); return }
|
||||||
|
|
||||||
|
_v.DiamondNumDouble = make([]*Gameatn, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ *Gameatn
|
||||||
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
|
_v.DiamondNumDouble = append(_v.DiamondNumDouble, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{ var _ok_ bool; if _v.Channel, _ok_ = _buf["channel"].(string); !_ok_ { err = errors.New("channel error"); return } }
|
{ var _ok_ bool; if _v.Channel, _ok_ = _buf["channel"].(string); !_ok_ { err = errors.New("channel error"); return } }
|
||||||
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
|
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
|
||||||
{ var _ok_ bool; if _v.Image, _ok_ = _buf["image"].(string); !_ok_ { err = errors.New("image error"); return } }
|
{ var _ok_ bool; if _v.Image, _ok_ = _buf["image"].(string); !_ok_ { err = errors.New("image error"); return } }
|
||||||
|
Loading…
Reference in New Issue
Block a user