"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiResponse = void 0;
/**
 *
 * @date 2025-07-16 16:56:51
 * @author 丁一哲
 */
var mslib_1 = require("mslib");
var ApiResponse = /** @class */ (function () {
    function ApiResponse() {
    }
    /**
     * 返回结果
     * @param {int} code 状态码
     * @param {string} msg  消息
     * @param {Object} data  数据
     */
    ApiResponse.successResult = function (resCode, resMsg, data, flag) {
        if (resCode === void 0) { resCode = 0; }
        if (resMsg === void 0) { resMsg = ''; }
        if (flag === void 0) { flag = ''; }
        mslib_1.logger.info(flag + " \u5E94\u7B54\u53C2\u6570  " + JSON.stringify({ resCode: resCode, resMsg: resMsg, data: data }));
        var result = {
            resCode: resCode,
            resMsg: resMsg,
            data: data
        };
        return result;
    };
    return ApiResponse;
}());
exports.ApiResponse = ApiResponse;
//# sourceMappingURL=ApiResponse.js.map