代码拉取完成,页面将自动刷新
package CSV
import (
"fmt"
"sort"
"gitee.com/liuxuezhan/mylib/Utils/wsort"
)
type CF_TransferBattleProcessingScoreReward_DataEntry struct {
ID int64
MainCityLevel int64
ScoreGoal string
RewardValue string
LeagueScoreGoal string
LeagueRewardValue string
}
type CF_TransferBattleProcessingScoreReward struct {
BaseManager
m_kDataEntryTable map[int64]*CF_TransferBattleProcessingScoreReward_DataEntry
m_kIdList []int64
}
func (this *CF_TransferBattleProcessingScoreReward) Init() {
this.m_kDataEntryTable = make(map[int64]*CF_TransferBattleProcessingScoreReward_DataEntry)
this.m_kIdList = make([]int64, 0)
kSqlCMD := "SELECT * FROM TransferBattleProcessingScoreReward"
if data, ok := sqliteconn.Query(kSqlCMD); ok {
for i := 0; i < len(data); i++ {
kNewEntry := new(CF_TransferBattleProcessingScoreReward_DataEntry)
kNewEntry.ID = ConvertToInt64(data[i]["ID"])
kNewEntry.MainCityLevel = ConvertToInt64(data[i]["MainCityLevel"])
kNewEntry.ScoreGoal = data[i]["ScoreGoal"]
kNewEntry.RewardValue = data[i]["RewardValue"]
kNewEntry.LeagueScoreGoal = data[i]["LeagueScoreGoal"]
kNewEntry.LeagueRewardValue = data[i]["LeagueRewardValue"]
this.m_kDataEntryTable[kNewEntry.ID] = kNewEntry
this.m_kIdList = append(this.m_kIdList, kNewEntry.ID)
}
} else {
fmt.Println("Query from db3 failed!")
}
sort.Sort(wsort.Int64Slice(this.m_kIdList))
}
func (this *CF_TransferBattleProcessingScoreReward) GetEntryPtr(id int64) *CF_TransferBattleProcessingScoreReward_DataEntry {
if !this.ContainsID(id) {
return nil
}
return this.m_kDataEntryTable[id]
}
func (this *CF_TransferBattleProcessingScoreReward) GetIDList() []int64 {
return this.m_kIdList
}
func (this *CF_TransferBattleProcessingScoreReward) ContainsID(id int64) bool {
if _, ok := this.m_kDataEntryTable[id]; ok {
return true
}
return false
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。