24 lines
455 B
Go
24 lines
455 B
Go
package stamp
|
|
|
|
import (
|
|
stampapischema "honoka-chan/internal/schema/api/stamp"
|
|
honokautils "honoka-chan/internal/utils"
|
|
"time"
|
|
)
|
|
|
|
func stampInfo() (res any, err error) {
|
|
stampData, err := honokautils.LoadServerData[stampapischema.InfoData]("stamp_data.json")
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
res = stampapischema.InfoResp{
|
|
Result: stampData,
|
|
Status: 200,
|
|
CommandNum: false,
|
|
TimeStamp: time.Now().Unix(),
|
|
}
|
|
|
|
return res, err
|
|
}
|