Implement achievement list

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-13 06:54:32 +08:00
parent 5c2d68f979
commit 17336de1b7
10 changed files with 320 additions and 0 deletions
@@ -0,0 +1,27 @@
package achievement
import (
achievementapischema "honoka-chan/internal/schema/api/achievement"
"time"
)
func unaccomplishList() (res any, err error) {
listData := make([]achievementapischema.UnaccomplishListData, 0, len(achievementFilterCategoryList))
for i := range achievementFilterCategoryList {
listData = append(listData, achievementapischema.UnaccomplishListData{
FilterCategoryID: achievementFilterCategoryList[i],
AchievementList: []achievementapischema.AchievementListItem{},
Count: 0,
IsLast: true,
})
}
res = achievementapischema.UnaccomplishListResp{
Result: listData,
Status: 200,
CommandNum: false,
TimeStamp: time.Now().Unix(),
}
return res, nil
}