github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/msg/rank.go (about) 1 package msg 2 3 // 金币排行榜 4 type MonthChipsRank struct { 5 UserID int 6 Nickname string 7 Headimgurl string 8 Chips int64 9 } 10 11 type TempMCR struct { 12 Nickname string 13 Headimgurl string 14 Chips int64 15 } 16 17 // 胜场排行榜 18 type MonthWinsRank struct { 19 UserID int 20 Nickname string 21 Headimgurl string 22 Wins int 23 } 24 25 type TempMWR struct { 26 Nickname string 27 Headimgurl string 28 Wins int 29 } 30 31 type C2S_GetMonthChipsRank struct { 32 PageNum int 33 } 34 35 type C2S_GetMonthChipsRankPos struct { 36 } 37 38 type C2S_GetMonthWinsRank struct { 39 PageNum int 40 } 41 42 type C2S_GetMonthWinsRankPos struct { 43 } 44 45 type C2S_CleanMonthRanks struct { 46 } 47 48 type S2C_UpdateMonthChipsRankPos struct { 49 Pos int 50 Chips int64 51 } 52 53 type S2C_UpdateMonthChipsRanks struct { 54 PageNum int // 当前页数 55 PageSum int // 总页数 56 ChipsRanks []TempMCR 57 } 58 59 type S2C_UpdateMonthWinsRankPos struct { 60 Pos int 61 Wins int 62 } 63 64 type S2C_UpdateMonthWinsRanks struct { 65 PageNum int // 当前页数 66 PageSum int // 总页数 67 WinsRanks []TempMWR 68 } 69 70 type S2C_CleanMonthRanks struct { 71 }