- Add secretbox API schemas, handlers, and routes for all/showDetail/pon/multi - Load secretbox server data through the shared serverdata loader - Fix rarity mapping and pool rules for SR/SSR/UR special boxes - Implement thanks festival pool behavior, including UR guarantee and SSR/UR-only rates - Correct animation-related fields such as is_hit and lowest_rarity, and add rare UR promotion animation Signed-off-by: Sean Du <do4suki@gmail.com>
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
package secretboxschema
|
|
|
|
type ShowDetailReq struct {
|
|
Module string `json:"module"`
|
|
Action string `json:"action"`
|
|
TimeStamp int64 `json:"timeStamp"`
|
|
Mgd int `json:"mgd"`
|
|
SecretBoxID int `json:"secret_box_id"`
|
|
CommandNum string `json:"commandNum"`
|
|
}
|
|
|
|
type UnitLineUp struct {
|
|
Rarity int `json:"rarity"`
|
|
UnitIDs []int `json:"unit_ids"`
|
|
}
|
|
|
|
type ButtonTypeUnitLineUp struct {
|
|
SecretBoxButtonType int `json:"secret_box_button_type"`
|
|
SecretBoxName string `json:"secret_box_name"`
|
|
UnitLineUp []UnitLineUp `json:"unit_line_up"`
|
|
}
|
|
|
|
type ShowDetailData struct {
|
|
ButtonTypeUnitLineUp []ButtonTypeUnitLineUp `json:"button_type_unit_line_up,omitempty"`
|
|
UnitLineUp []UnitLineUp `json:"unit_line_up,omitempty"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type ShowDetailResp struct {
|
|
ResponseData ShowDetailData `json:"response_data"`
|
|
ReleaseInfo []any `json:"release_info"`
|
|
StatusCode int `json:"status_code"`
|
|
}
|