28 lines
731 B
Go
28 lines
731 B
Go
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
|
|
}
|