const express = require('express')
const { success } = require('../utils/response')
const wechatRoutes = require('./wechatRoutes')

const router = express.Router()

router.post('/test-helloworld', (req, res) => {
    return success(res, '请求成功', {
        message: 'Hello, World!',
        timestamp: new Date().toISOString(),
        status: 'success',
    })
})

router.post('/health', (req, res) => {
    return success(res, '服务运行正常', {
        status: 'healthy',
        timestamp: new Date().toISOString(),
    })
})

router.use('/wechat', wechatRoutes)

module.exports = router
