- 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>
73 lines
1.7 KiB
Go
73 lines
1.7 KiB
Go
package banner
|
|
|
|
import (
|
|
bannerapischema "honoka-chan/internal/schema/api/banner"
|
|
"time"
|
|
)
|
|
|
|
func bannerList() (res any, err error) {
|
|
res = bannerapischema.ListResp{
|
|
Result: bannerapischema.ListData{
|
|
TimeLimit: "2037-12-31 23:59:59",
|
|
BannerList: []bannerapischema.BannerList{
|
|
{
|
|
BannerType: 1,
|
|
TargetID: 1718,
|
|
AssetPath: "assets/image/secretbox/icon/s_ba_1718_1.png",
|
|
FixedFlag: false,
|
|
BackSide: false,
|
|
BannerID: 101151,
|
|
StartDate: "2013-04-15 00:00:00",
|
|
EndDate: "2037-12-31 23:59:59",
|
|
},
|
|
{
|
|
BannerType: 1,
|
|
TargetID: 1719,
|
|
AssetPath: "assets/image/secretbox/icon/s_ba_1719_1.png",
|
|
FixedFlag: false,
|
|
BackSide: false,
|
|
BannerID: 101150,
|
|
StartDate: "2013-04-15 00:00:00",
|
|
EndDate: "2037-12-31 23:59:59",
|
|
},
|
|
{
|
|
BannerType: 1,
|
|
TargetID: 1720,
|
|
AssetPath: "assets/image/secretbox/icon/s_ba_1720_1.png",
|
|
FixedFlag: false,
|
|
BackSide: false,
|
|
BannerID: 101149,
|
|
StartDate: "2013-04-15 00:00:00",
|
|
EndDate: "2037-12-31 23:59:59",
|
|
},
|
|
{
|
|
BannerType: 1,
|
|
TargetID: 1721,
|
|
AssetPath: "assets/image/secretbox/icon/s_ba_1721_1.png",
|
|
FixedFlag: false,
|
|
BackSide: false,
|
|
BannerID: 101144,
|
|
StartDate: "2013-04-15 00:00:00",
|
|
EndDate: "2037-12-31 23:59:59",
|
|
},
|
|
{
|
|
BannerType: 2,
|
|
TargetID: 1,
|
|
AssetPath: "assets/image/webview/wv_ba_01.png",
|
|
WebviewURL: "/manga",
|
|
FixedFlag: false,
|
|
BackSide: true,
|
|
BannerID: 200001,
|
|
StartDate: "2016-10-15 15:00:00",
|
|
EndDate: "2037-12-31 23:59:59",
|
|
},
|
|
},
|
|
},
|
|
Status: 200,
|
|
CommandNum: false,
|
|
TimeStamp: time.Now().Unix(),
|
|
}
|
|
|
|
return res, err
|
|
}
|