package com.huimv.employment.controller.mp;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 小程序 API — 健康检查（骨架占位）。
 */
@RestController
@RequestMapping("/api/v1/mp")
@Tag(name = "系统", description = "健康检查等")
public class HealthController {

    @GetMapping("/health")
    @Operation(summary = "健康检查")
    public Map<String, Object> health() {
        Map<String, Object> body = new HashMap<>(4);
        body.put("code", 200);
        body.put("msg", "success");
        Map<String, Object> data = new HashMap<>(3);
        data.put("service", "fe-server");
        data.put("status", "UP");
        body.put("data", data);
        return body;
    }
}
