as: Unlock all suits (costumes)

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-05-23 01:12:54 +08:00
parent 6ae26a512a
commit 29ae1681c7
3 changed files with 4660 additions and 190 deletions
+4630 -190
View File
File diff suppressed because it is too large Load Diff
+24
View File
@@ -149,6 +149,30 @@ func init() {
// mm, err = json.Marshal(resp)
// CheckErr(err)
// fmt.Println(string(mm))
// eng, err := xorm.NewEngine("sqlite", "assets/masterdata.db")
// CheckErr(err)
// err = eng.Ping()
// CheckErr(err)
// suitIds := []int{}
// err = eng.Table("m_suit").Cols("id").OrderBy("id ASC").Find(&suitIds)
// CheckErr(err)
// jsonStr := "["
// for _, suit := range suitIds {
// suitInfo := model.AsSuitInfo{
// SuitMasterID: suit,
// IsNew: false,
// }
// m, err := json.Marshal(suitInfo)
// CheckErr(err)
// jsonStr += fmt.Sprintf("%d,%s,", suit, string(m))
// }
// jsonStr = strings.TrimRight(jsonStr, ",")
// jsonStr += "]"
// fmt.Println(jsonStr)
}
func main() {
+6
View File
@@ -221,6 +221,12 @@ type AsCardInfo struct {
IsNew bool `json:"is_new"`
}
// AsSuitInfo ...
type AsSuitInfo struct {
SuitMasterID int `json:"suit_master_id"`
IsNew bool `json:"is_new"`
}
// AsReq ...
type AsReq interface{}