System.register(["cc"], function (_export, _context) {
  "use strict";

  var _cclegacy, Result, _crd;

  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

  _export("Result", void 0);

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "25a03YAeA9LG7Jg/BwEWWHf", "Result", undefined);

      _export("Result", Result = class Result {
        constructor() {
          _defineProperty(this, "succ", false);

          _defineProperty(this, "err", "");

          _defineProperty(this, "code", 0);

          _defineProperty(this, "data", void 0);
        }

        static buildErr(errMsg, code) {
          if (code === void 0) {
            code = 0;
          }

          var r = new Result();
          r.succ = false;
          r.err = errMsg;
          r.code = code;
          return r;
        }

        static buildSucc(data) {
          var r = new Result();
          r.succ = true;
          r.data = data;
          return r;
        }

      });

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=Result.js.map