上传周长代码
This commit is contained in:
parent
cd5fcefb81
commit
0ef53d8ae6
@ -95,7 +95,7 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
|
|||||||
|
|
||||||
//英雄升星 【玩家名称】已将【英雄名称】培养至6星!
|
//英雄升星 【玩家名称】已将【英雄名称】培养至6星!
|
||||||
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
||||||
this.chat.SendSysChatToWorld(comm.ChatSystem8, nil, _hero.Lv, 0, user.Name, _hero.HeroID)
|
this.chat.SendSysChatToWorld(comm.ChatSystem8, _hero, _hero.Lv, 0, user.Name, _hero.HeroID)
|
||||||
} else {
|
} else {
|
||||||
this.module.Errorf("no found userdata uid:%s", session.GetUserId())
|
this.module.Errorf("no found userdata uid:%s", session.GetUserId())
|
||||||
}
|
}
|
||||||
|
20
modules/weektask/api.go
Normal file
20
modules/weektask/api.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/lego/base"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
)
|
||||||
|
|
||||||
|
type apiComp struct {
|
||||||
|
modules.MCompGate
|
||||||
|
service base.IRPCXService
|
||||||
|
module *WeekTask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
_ = this.MCompGate.Init(service, module, comp, options)
|
||||||
|
this.service = service.(base.IRPCXService)
|
||||||
|
this.module = module.(*WeekTask)
|
||||||
|
return
|
||||||
|
}
|
90
modules/weektask/api_Info.go
Normal file
90
modules/weektask/api_Info.go
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
"go_dreamfactory/sys/configure"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
"go_dreamfactory/utils"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 参数校验
|
||||||
|
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.WeekTaskInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// /获取自己的排行榜信息
|
||||||
|
func (this *apiComp) Info(session comm.IUserSession, req *pb.WeekTaskInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBWeektask
|
||||||
|
confs []*cfg.GameTaskRoundData
|
||||||
|
tasks []int32
|
||||||
|
progress []*pb.ConIProgress
|
||||||
|
opencmd map[string]int32
|
||||||
|
update map[string]interface{}
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.InfoCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if info, err = this.module.modelWeektask.getUserDTasks(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
update = make(map[string]interface{})
|
||||||
|
if !utils.IsSameWeek(info.Rtime) { //不是同一周 重置
|
||||||
|
info.Tcomplete = make(map[int32]bool)
|
||||||
|
info.Acomplete = make(map[int32]bool)
|
||||||
|
info.Activity = 0
|
||||||
|
info.Rtime = configure.Now().Unix()
|
||||||
|
if opencmd, errdata = this.module.sys.QueryOpenCondData(session.GetUserId()); errdata != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if err = this.module.modelWeektask.inquireActivations(info, opencmd); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
update["activity"] = info.Activity
|
||||||
|
update["tasks"] = info.Tasks
|
||||||
|
update["tcomplete"] = info.Tcomplete
|
||||||
|
update["acomplete"] = info.Acomplete
|
||||||
|
update["rtime"] = info.Rtime
|
||||||
|
}
|
||||||
|
if confs, err = this.module.configure.getGameTaskRoundDatasByids(info.Tasks); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tasks = make([]int32, 0, len(confs))
|
||||||
|
for _, v := range confs {
|
||||||
|
tasks = append(tasks, v.TypeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
if progress, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), tasks...); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ExternalModule,
|
||||||
|
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len(update) > 0 {
|
||||||
|
if err = this.module.modelWeektask.Change(session.GetUserId(), update); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_PbError,
|
||||||
|
Title: pb.ErrorCode_PbError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
session.SendMsg(string(this.module.GetType()), "info", &pb.WeekTaskInfoResp{Info: info, Progress: progress})
|
||||||
|
return
|
||||||
|
}
|
81
modules/weektask/api_activityreceive.go
Normal file
81
modules/weektask/api_activityreceive.go
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 参数校验
|
||||||
|
func (this *apiComp) ActivityReceiveCheck(session comm.IUserSession, req *pb.WeekTaskActivityReceiveReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// /获取自己的排行榜信息
|
||||||
|
func (this *apiComp) ActivityReceive(session comm.IUserSession, req *pb.WeekTaskActivityReceiveReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBWeektask
|
||||||
|
conf *cfg.GameActiveRewardData
|
||||||
|
award []*pb.UserAssets
|
||||||
|
ok bool
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.ActivityReceiveCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if info, err = this.module.modelWeektask.getUserDTasks(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if conf, err = this.module.configure.getGameActiveRewardData(req.Id); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if info.Activity < conf.Active {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
|
Message: "Activity not enough!",
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, ok = info.Acomplete[req.Id]; ok {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
|
Message: "task no complete!",
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
award = make([]*pb.UserAssets, 0)
|
||||||
|
for _, v := range conf.Reword {
|
||||||
|
award = append(award, &pb.UserAssets{
|
||||||
|
A: v.A,
|
||||||
|
T: v.T,
|
||||||
|
N: v.N,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if errdata = this.module.DispenseRes(session, conf.Reword, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
info.Acomplete[req.Id] = true
|
||||||
|
this.module.modelWeektask.Change(session.GetUserId(), map[string]interface{}{
|
||||||
|
"acomplete": info.Acomplete,
|
||||||
|
})
|
||||||
|
session.SendMsg(string(this.module.GetType()), "activityreceive", &pb.WeekTaskActivityReceiveResp{Id: req.Id, Award: award})
|
||||||
|
return
|
||||||
|
}
|
109
modules/weektask/api_receive.go
Normal file
109
modules/weektask/api_receive.go
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 参数校验
|
||||||
|
func (this *apiComp) ReceiveCheck(session comm.IUserSession, req *pb.WeekTaskReceiveReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// /获取自己的排行榜信息
|
||||||
|
func (this *apiComp) Receive(session comm.IUserSession, req *pb.WeekTaskReceiveReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBWeektask
|
||||||
|
conf *cfg.GameTaskRoundData
|
||||||
|
confs []*cfg.GameTaskRoundData
|
||||||
|
tasks []int32
|
||||||
|
progress []*pb.ConIProgress
|
||||||
|
award []*pb.UserAssets
|
||||||
|
ok bool
|
||||||
|
opencmd map[string]int32
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.ReceiveCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if info, err = this.module.modelWeektask.getUserDTasks(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if conf, err = this.module.configure.getGameTaskRoundData(req.Tid); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, ok = info.Tcomplete[req.Tid]; ok {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
|
Message: "task no complete!",
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
award = make([]*pb.UserAssets, 0)
|
||||||
|
for _, v := range conf.Reword {
|
||||||
|
award = append(award, &pb.UserAssets{
|
||||||
|
A: v.A,
|
||||||
|
T: v.T,
|
||||||
|
N: v.N,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if errdata = this.module.DispenseRes(session, conf.Reword, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
info.Activity += conf.Active
|
||||||
|
info.Tcomplete[req.Tid] = true
|
||||||
|
|
||||||
|
if opencmd, errdata = this.module.sys.QueryOpenCondData(session.GetUserId()); errdata != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if err = this.module.modelWeektask.inquireActivations(info, opencmd); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if confs, err = this.module.configure.getGameTaskRoundDatasByids(info.Tasks); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tasks = make([]int32, 0, len(confs))
|
||||||
|
for _, v := range confs {
|
||||||
|
tasks = append(tasks, v.TypeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
if progress, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), tasks...); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ExternalModule,
|
||||||
|
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.module.modelWeektask.Change(session.GetUserId(), map[string]interface{}{
|
||||||
|
"activity": info.Activity,
|
||||||
|
"tasks": info.Tasks,
|
||||||
|
"tcomplete": info.Tcomplete,
|
||||||
|
})
|
||||||
|
session.SendMsg(string(this.module.GetType()), "receive", &pb.WeekTaskReceiveResp{Tid: req.Tid, Activity: info.Activity, Tasks: info.Tasks, Progress: progress, Award: award})
|
||||||
|
return
|
||||||
|
}
|
105
modules/weektask/configure.go
Normal file
105
modules/weektask/configure.go
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
"sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
gameActiveReward = "game_taskactivereward.json"
|
||||||
|
gameTaskRound = "game_taskround.json"
|
||||||
|
)
|
||||||
|
|
||||||
|
type configureComp struct {
|
||||||
|
modules.MCompConfigure
|
||||||
|
module *WeekTask
|
||||||
|
lock sync.RWMutex
|
||||||
|
groupTasks map[int32][]*cfg.GameAnnulartask_LibraryData //key 条件ID
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||||
|
this.module = module.(*WeekTask)
|
||||||
|
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||||
|
gameTaskRound: cfg.NewGameTaskRound,
|
||||||
|
gameActiveReward: cfg.NewGameActiveReward,
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 随机获取任务组
|
||||||
|
func (this *configureComp) getGameTaskRoundData(id int32) (conf *cfg.GameTaskRoundData, err error) {
|
||||||
|
var (
|
||||||
|
v interface{}
|
||||||
|
ok bool
|
||||||
|
)
|
||||||
|
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if conf, ok = v.(*cfg.GameTaskRound).GetDataMap()[id]; !ok {
|
||||||
|
err = comm.NewNotFoundConfErr(string(this.module.GetType()), gameActiveReward, id)
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 随机获取任务组
|
||||||
|
func (this *configureComp) getGameTaskRoundDatas() (confs []*cfg.GameTaskRoundData, err error) {
|
||||||
|
var (
|
||||||
|
v interface{}
|
||||||
|
)
|
||||||
|
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
confs = v.(*cfg.GameTaskRound).GetDataList()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 随机获取任务组
|
||||||
|
func (this *configureComp) getGameTaskRoundDatasByids(ids []int32) (confs []*cfg.GameTaskRoundData, err error) {
|
||||||
|
var (
|
||||||
|
v interface{}
|
||||||
|
c *cfg.GameTaskRound
|
||||||
|
conf *cfg.GameTaskRoundData
|
||||||
|
ok bool
|
||||||
|
)
|
||||||
|
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
c = v.(*cfg.GameTaskRound)
|
||||||
|
confs = make([]*cfg.GameTaskRoundData, 0)
|
||||||
|
for _, id := range ids {
|
||||||
|
if conf, ok = c.GetDataMap()[id]; !ok {
|
||||||
|
err = comm.NewNotFoundConfErr(string(this.module.GetType()), gameActiveReward, id)
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
confs = append(confs, conf)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 随机获取任务组
|
||||||
|
func (this *configureComp) getGameActiveRewardData(id int32) (conf *cfg.GameActiveRewardData, err error) {
|
||||||
|
var (
|
||||||
|
v interface{}
|
||||||
|
ok bool
|
||||||
|
)
|
||||||
|
if v, err = this.GetConfigure(gameActiveReward); err != nil {
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if conf, ok = v.(*cfg.GameActiveReward).GetDataMap()[id]; !ok {
|
||||||
|
err = comm.NewNotFoundConfErr(string(this.module.GetType()), gameActiveReward, id)
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
88
modules/weektask/modelWeeltask.go
Normal file
88
modules/weektask/modelWeeltask.go
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
|
||||||
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ModelWeektask struct {
|
||||||
|
modules.MCompModel
|
||||||
|
module *WeekTask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *ModelWeektask) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.MCompModel.Init(service, module, comp, options)
|
||||||
|
this.TableName = comm.TableWeeltask
|
||||||
|
this.module = module.(*WeekTask)
|
||||||
|
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||||
|
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取用户全部的埋点数据
|
||||||
|
func (this *ModelWeektask) getUserDTasks(uid string) (results *pb.DBWeektask, err error) {
|
||||||
|
results = &pb.DBWeektask{}
|
||||||
|
if err = this.Get(uid, results); err != nil && err != mgo.MongodbNil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err == mgo.MongodbNil {
|
||||||
|
results = &pb.DBWeektask{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Uid: uid,
|
||||||
|
Activity: 0,
|
||||||
|
Tasks: make([]int32, 0),
|
||||||
|
Tcomplete: make(map[int32]bool),
|
||||||
|
Acomplete: make(map[int32]bool),
|
||||||
|
Rtime: 0,
|
||||||
|
}
|
||||||
|
if opencmd, errdata := this.module.sys.QueryOpenCondData(uid); errdata != nil {
|
||||||
|
err = fmt.Errorf("sys.QueryOpenCondData err:%s", errdata.Message)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
if err = this.inquireActivations(results, opencmd); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = this.Add(uid, results)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询可接取任务列表
|
||||||
|
func (this *ModelWeektask) inquireActivations(info *pb.DBWeektask, opencmd map[string]int32) (err error) {
|
||||||
|
var (
|
||||||
|
confs []*cfg.GameTaskRoundData
|
||||||
|
ok bool
|
||||||
|
)
|
||||||
|
if confs, err = this.module.configure.getGameTaskRoundDatas(); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
info.Tasks = make([]int32, 0)
|
||||||
|
for _, v := range confs {
|
||||||
|
|
||||||
|
if _, ok = info.Tcomplete[v.Key]; ok { //已完成
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if v.Open != "" && opencmd[v.Open] != 2 { //功能未开启
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// if v.IdBefore != 0 && !info.Tcomplete[v.Key] { //前置任务未完成
|
||||||
|
// continue
|
||||||
|
// }
|
||||||
|
info.Tasks = append(info.Tasks, v.Key)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
59
modules/weektask/module.go
Normal file
59
modules/weektask/module.go
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
package dailytask
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
模块名:周长任务
|
||||||
|
描述:周长任务
|
||||||
|
开发:李伟
|
||||||
|
*/
|
||||||
|
type WeekTask struct {
|
||||||
|
modules.ModuleBase
|
||||||
|
service core.IService
|
||||||
|
sys comm.ISys
|
||||||
|
api *apiComp
|
||||||
|
configure *configureComp
|
||||||
|
modelWeektask *ModelWeektask
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewModule() core.IModule {
|
||||||
|
return &WeekTask{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *WeekTask) GetType() core.M_Modules {
|
||||||
|
return comm.ModuleWeektask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *WeekTask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.ModuleBase.Init(service, module, options)
|
||||||
|
this.service = service
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *WeekTask) Start() (err error) {
|
||||||
|
err = this.ModuleBase.Start()
|
||||||
|
var module core.IModule
|
||||||
|
if module, err = this.service.GetModule(comm.ModuleSys); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.sys = module.(comm.ISys)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *WeekTask) OnInstallComp() {
|
||||||
|
this.ModuleBase.OnInstallComp()
|
||||||
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
|
this.modelWeektask = this.RegisterComp(new(ModelWeektask)).(*ModelWeektask)
|
||||||
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询每日红点信息
|
||||||
|
func (this *WeekTask) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (reddot map[comm.ReddotType]*pb.ReddotItem) {
|
||||||
|
return
|
||||||
|
}
|
@ -35,6 +35,8 @@ const (
|
|||||||
EffectTipsType_Gain_round EffectTipsType = 9 //获得回合
|
EffectTipsType_Gain_round EffectTipsType = 9 //获得回合
|
||||||
EffectTipsType_Add_Operate EffectTipsType = 10 //增加行动值
|
EffectTipsType_Add_Operate EffectTipsType = 10 //增加行动值
|
||||||
EffectTipsType_Sub_Operate EffectTipsType = 11 //减少行动值
|
EffectTipsType_Sub_Operate EffectTipsType = 11 //减少行动值
|
||||||
|
EffectTipsType_Standoff EffectTipsType = 12 //对峙
|
||||||
|
EffectTipsType_Undead EffectTipsType = 13 //不死
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for EffectTipsType.
|
// Enum value maps for EffectTipsType.
|
||||||
@ -52,6 +54,8 @@ var (
|
|||||||
9: "Gain_round",
|
9: "Gain_round",
|
||||||
10: "Add_Operate",
|
10: "Add_Operate",
|
||||||
11: "Sub_Operate",
|
11: "Sub_Operate",
|
||||||
|
12: "Standoff",
|
||||||
|
13: "Undead",
|
||||||
}
|
}
|
||||||
EffectTipsType_value = map[string]int32{
|
EffectTipsType_value = map[string]int32{
|
||||||
"Eff_Success": 0,
|
"Eff_Success": 0,
|
||||||
@ -66,6 +70,8 @@ var (
|
|||||||
"Gain_round": 9,
|
"Gain_round": 9,
|
||||||
"Add_Operate": 10,
|
"Add_Operate": 10,
|
||||||
"Sub_Operate": 11,
|
"Sub_Operate": 11,
|
||||||
|
"Standoff": 12,
|
||||||
|
"Undead": 13,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1880,7 +1886,7 @@ var file_battle_battle_struct_proto_rawDesc = []byte{
|
|||||||
0x72, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
0x72, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||||
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72,
|
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xcd, 0x01, 0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xe7, 0x01, 0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74,
|
||||||
0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f,
|
0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f,
|
||||||
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74,
|
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74,
|
||||||
0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6d,
|
0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6d,
|
||||||
@ -1893,8 +1899,9 @@ var file_battle_battle_struct_proto_rawDesc = []byte{
|
|||||||
0x65, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x47, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x6e,
|
0x65, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x47, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x6e,
|
||||||
0x64, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x5f, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
0x64, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x5f, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
||||||
0x74, 0x65, 0x10, 0x0a, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x5f, 0x4f, 0x70, 0x65, 0x72,
|
0x74, 0x65, 0x10, 0x0a, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x5f, 0x4f, 0x70, 0x65, 0x72,
|
||||||
0x61, 0x74, 0x65, 0x10, 0x0b, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
0x61, 0x74, 0x65, 0x10, 0x0b, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x6f, 0x66,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x66, 0x10, 0x0c, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x6e, 0x64, 0x65, 0x61, 0x64, 0x10, 0x0d, 0x42,
|
||||||
|
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
215
pb/weektask_db.pb.go
Normal file
215
pb/weektask_db.pb.go
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: weektask/weektask_db.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
//日常任务
|
||||||
|
type DBWeektask struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
|
||||||
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||||
|
Activity int32 `protobuf:"varint,3,opt,name=activity,proto3" json:"activity"` //活跃度
|
||||||
|
Tasks []int32 `protobuf:"varint,4,rep,packed,name=tasks,proto3" json:"tasks"` //任务列表
|
||||||
|
Tcomplete map[int32]bool `protobuf:"bytes,5,rep,name=tcomplete,proto3" json:"tcomplete" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //已领取任务
|
||||||
|
Acomplete map[int32]bool `protobuf:"bytes,6,rep,name=acomplete,proto3" json:"acomplete" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //已领奖活跃度
|
||||||
|
Rtime int64 `protobuf:"varint,7,opt,name=rtime,proto3" json:"rtime"` //上次刷新时间
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) Reset() {
|
||||||
|
*x = DBWeektask{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_db_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBWeektask) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBWeektask) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_db_proto_msgTypes[0]
|
||||||
|
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 DBWeektask.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBWeektask) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetActivity() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Activity
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetTasks() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Tasks
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetTcomplete() map[int32]bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Tcomplete
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetAcomplete() map[int32]bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Acomplete
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBWeektask) GetRtime() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Rtime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_weektask_weektask_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_weektask_weektask_db_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1a, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x77, 0x65, 0x65, 0x6b, 0x74,
|
||||||
|
0x61, 0x73, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x02, 0x0a,
|
||||||
|
0x0a, 0x44, 0x42, 0x57, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
||||||
|
0x64, 0x18, 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, 0x1a, 0x0a,
|
||||||
|
0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
|
0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73,
|
||||||
|
0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12,
|
||||||
|
0x38, 0x0a, 0x09, 0x74, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x03,
|
||||||
|
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x57, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x2e,
|
||||||
|
0x54, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09,
|
||||||
|
0x74, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x63, 0x6f,
|
||||||
|
0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44,
|
||||||
|
0x42, 0x57, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x41, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
|
||||||
|
0x65, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x61, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
|
||||||
|
0x65, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01,
|
||||||
|
0x28, 0x03, 0x52, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65, 0x1a, 0x3c, 0x0a, 0x0e, 0x54, 0x63, 0x6f,
|
||||||
|
0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||||
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||||
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61,
|
||||||
|
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a, 0x0e, 0x41, 0x63, 0x6f, 0x6d, 0x70,
|
||||||
|
0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
||||||
|
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 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 (
|
||||||
|
file_weektask_weektask_db_proto_rawDescOnce sync.Once
|
||||||
|
file_weektask_weektask_db_proto_rawDescData = file_weektask_weektask_db_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_weektask_weektask_db_proto_rawDescGZIP() []byte {
|
||||||
|
file_weektask_weektask_db_proto_rawDescOnce.Do(func() {
|
||||||
|
file_weektask_weektask_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_weektask_weektask_db_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_weektask_weektask_db_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_weektask_weektask_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||||
|
var file_weektask_weektask_db_proto_goTypes = []interface{}{
|
||||||
|
(*DBWeektask)(nil), // 0: DBWeektask
|
||||||
|
nil, // 1: DBWeektask.TcompleteEntry
|
||||||
|
nil, // 2: DBWeektask.AcompleteEntry
|
||||||
|
}
|
||||||
|
var file_weektask_weektask_db_proto_depIdxs = []int32{
|
||||||
|
1, // 0: DBWeektask.tcomplete:type_name -> DBWeektask.TcompleteEntry
|
||||||
|
2, // 1: DBWeektask.acomplete:type_name -> DBWeektask.AcompleteEntry
|
||||||
|
2, // [2:2] is the sub-list for method output_type
|
||||||
|
2, // [2:2] is the sub-list for method input_type
|
||||||
|
2, // [2:2] is the sub-list for extension 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_weektask_weektask_db_proto_init() }
|
||||||
|
func file_weektask_weektask_db_proto_init() {
|
||||||
|
if File_weektask_weektask_db_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_weektask_weektask_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBWeektask); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_weektask_weektask_db_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 3,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_weektask_weektask_db_proto_goTypes,
|
||||||
|
DependencyIndexes: file_weektask_weektask_db_proto_depIdxs,
|
||||||
|
MessageInfos: file_weektask_weektask_db_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_weektask_weektask_db_proto = out.File
|
||||||
|
file_weektask_weektask_db_proto_rawDesc = nil
|
||||||
|
file_weektask_weektask_db_proto_goTypes = nil
|
||||||
|
file_weektask_weektask_db_proto_depIdxs = nil
|
||||||
|
}
|
528
pb/weektask_msg.pb.go
Normal file
528
pb/weektask_msg.pb.go
Normal file
@ -0,0 +1,528 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: weektask/weektask_msg.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
//周常任务信息获取
|
||||||
|
type WeekTaskInfoReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoReq) Reset() {
|
||||||
|
*x = WeekTaskInfoReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskInfoReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[0]
|
||||||
|
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 WeekTaskInfoReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskInfoReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
//周常任务信息获取 回应
|
||||||
|
type WeekTaskInfoResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Info *DBWeektask `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` //周长任务
|
||||||
|
Progress []*ConIProgress `protobuf:"bytes,2,rep,name=progress,proto3" json:"progress"` //任务进度
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoResp) Reset() {
|
||||||
|
*x = WeekTaskInfoResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskInfoResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_msg_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 WeekTaskInfoResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskInfoResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoResp) GetInfo() *DBWeektask {
|
||||||
|
if x != nil {
|
||||||
|
return x.Info
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskInfoResp) GetProgress() []*ConIProgress {
|
||||||
|
if x != nil {
|
||||||
|
return x.Progress
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
//周常任务 领奖请求
|
||||||
|
type WeekTaskReceiveReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Tid int32 `protobuf:"varint,1,opt,name=tid,proto3" json:"tid"` //任务id
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveReq) Reset() {
|
||||||
|
*x = WeekTaskReceiveReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskReceiveReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_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 WeekTaskReceiveReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskReceiveReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveReq) GetTid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Tid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//周常任务 领奖请求 回应
|
||||||
|
type WeekTaskReceiveResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Tid int32 `protobuf:"varint,1,opt,name=tid,proto3" json:"tid"` //任务id
|
||||||
|
Activity int32 `protobuf:"varint,2,opt,name=activity,proto3" json:"activity"` //活跃度
|
||||||
|
Tasks []int32 `protobuf:"varint,3,rep,packed,name=tasks,proto3" json:"tasks"` //任务列表
|
||||||
|
Progress []*ConIProgress `protobuf:"bytes,4,rep,name=progress,proto3" json:"progress"` //任务进度
|
||||||
|
Award []*UserAssets `protobuf:"bytes,5,rep,name=award,proto3" json:"award"` //奖励
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) Reset() {
|
||||||
|
*x = WeekTaskReceiveResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskReceiveResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[3]
|
||||||
|
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 WeekTaskReceiveResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskReceiveResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) GetTid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Tid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) GetActivity() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Activity
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) GetTasks() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Tasks
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) GetProgress() []*ConIProgress {
|
||||||
|
if x != nil {
|
||||||
|
return x.Progress
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskReceiveResp) GetAward() []*UserAssets {
|
||||||
|
if x != nil {
|
||||||
|
return x.Award
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
//周常任务 领奖请求
|
||||||
|
type WeekTaskActivityReceiveReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` //活跃度奖励id
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveReq) Reset() {
|
||||||
|
*x = WeekTaskActivityReceiveReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskActivityReceiveReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[4]
|
||||||
|
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 WeekTaskActivityReceiveReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskActivityReceiveReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveReq) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//周常任务 领奖请求 回应
|
||||||
|
type WeekTaskActivityReceiveResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||||
|
Award []*UserAssets `protobuf:"bytes,2,rep,name=award,proto3" json:"award"` //奖励
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveResp) Reset() {
|
||||||
|
*x = WeekTaskActivityReceiveResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WeekTaskActivityReceiveResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_weektask_weektask_msg_proto_msgTypes[5]
|
||||||
|
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 WeekTaskActivityReceiveResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WeekTaskActivityReceiveResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveResp) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WeekTaskActivityReceiveResp) GetAward() []*UserAssets {
|
||||||
|
if x != nil {
|
||||||
|
return x.Award
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_weektask_weektask_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_weektask_weektask_msg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1b, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x77, 0x65, 0x65, 0x6b, 0x74,
|
||||||
|
0x61, 0x73, 0x6b, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x77,
|
||||||
|
0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b,
|
||||||
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x75, 0x72, 0x69, 0x65,
|
||||||
|
0x64, 0x2f, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a,
|
||||||
|
0x0f, 0x57, 0x65, 0x65, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
|
||||||
|
0x22, 0x5e, 0x0a, 0x10, 0x57, 0x65, 0x65, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x57, 0x65, 0x65, 0x6b, 0x74, 0x61, 0x73, 0x6b, 0x52,
|
||||||
|
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
|
||||||
|
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72,
|
||||||
|
0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
|
||||||
|
0x22, 0x26, 0x0a, 0x12, 0x57, 0x65, 0x65, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65,
|
||||||
|
0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x69, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x57, 0x65, 0x65,
|
||||||
|
0x6b, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x12, 0x10, 0x0a, 0x03, 0x74, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74,
|
||||||
|
0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x14,
|
||||||
|
0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74,
|
||||||
|
0x61, 0x73, 0x6b, 0x73, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
|
||||||
|
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f,
|
||||||
|
0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12,
|
||||||
|
0x21, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b,
|
||||||
|
0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x61, 0x77, 0x61,
|
||||||
|
0x72, 0x64, 0x22, 0x2c, 0x0a, 0x1a, 0x57, 0x65, 0x65, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63,
|
||||||
|
0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71,
|
||||||
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64,
|
||||||
|
0x22, 0x50, 0x0a, 0x1b, 0x57, 0x65, 0x65, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69,
|
||||||
|
0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||||
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
|
0x21, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b,
|
||||||
|
0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x61, 0x77, 0x61,
|
||||||
|
0x72, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_weektask_weektask_msg_proto_rawDescOnce sync.Once
|
||||||
|
file_weektask_weektask_msg_proto_rawDescData = file_weektask_weektask_msg_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_weektask_weektask_msg_proto_rawDescGZIP() []byte {
|
||||||
|
file_weektask_weektask_msg_proto_rawDescOnce.Do(func() {
|
||||||
|
file_weektask_weektask_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_weektask_weektask_msg_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_weektask_weektask_msg_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_weektask_weektask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||||
|
var file_weektask_weektask_msg_proto_goTypes = []interface{}{
|
||||||
|
(*WeekTaskInfoReq)(nil), // 0: WeekTaskInfoReq
|
||||||
|
(*WeekTaskInfoResp)(nil), // 1: WeekTaskInfoResp
|
||||||
|
(*WeekTaskReceiveReq)(nil), // 2: WeekTaskReceiveReq
|
||||||
|
(*WeekTaskReceiveResp)(nil), // 3: WeekTaskReceiveResp
|
||||||
|
(*WeekTaskActivityReceiveReq)(nil), // 4: WeekTaskActivityReceiveReq
|
||||||
|
(*WeekTaskActivityReceiveResp)(nil), // 5: WeekTaskActivityReceiveResp
|
||||||
|
(*DBWeektask)(nil), // 6: DBWeektask
|
||||||
|
(*ConIProgress)(nil), // 7: ConIProgress
|
||||||
|
(*UserAssets)(nil), // 8: UserAssets
|
||||||
|
}
|
||||||
|
var file_weektask_weektask_msg_proto_depIdxs = []int32{
|
||||||
|
6, // 0: WeekTaskInfoResp.info:type_name -> DBWeektask
|
||||||
|
7, // 1: WeekTaskInfoResp.progress:type_name -> ConIProgress
|
||||||
|
7, // 2: WeekTaskReceiveResp.progress:type_name -> ConIProgress
|
||||||
|
8, // 3: WeekTaskReceiveResp.award:type_name -> UserAssets
|
||||||
|
8, // 4: WeekTaskActivityReceiveResp.award:type_name -> UserAssets
|
||||||
|
5, // [5:5] is the sub-list for method output_type
|
||||||
|
5, // [5:5] is the sub-list for method input_type
|
||||||
|
5, // [5:5] is the sub-list for extension type_name
|
||||||
|
5, // [5:5] is the sub-list for extension extendee
|
||||||
|
0, // [0:5] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_weektask_weektask_msg_proto_init() }
|
||||||
|
func file_weektask_weektask_msg_proto_init() {
|
||||||
|
if File_weektask_weektask_msg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_weektask_weektask_db_proto_init()
|
||||||
|
file_buried_buried_db_proto_init()
|
||||||
|
file_comm_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskInfoReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskInfoResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskReceiveReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskReceiveResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskActivityReceiveReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_weektask_weektask_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*WeekTaskActivityReceiveResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_weektask_weektask_msg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 6,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_weektask_weektask_msg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_weektask_weektask_msg_proto_depIdxs,
|
||||||
|
MessageInfos: file_weektask_weektask_msg_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_weektask_weektask_msg_proto = out.File
|
||||||
|
file_weektask_weektask_msg_proto_rawDesc = nil
|
||||||
|
file_weektask_weektask_msg_proto_goTypes = nil
|
||||||
|
file_weektask_weektask_msg_proto_depIdxs = nil
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user