api_data.js 5.06 KB
define({ "api": [
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p> "
          },
          {
            "group": "Success 200",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p> "
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "./assets/doc/main.js",
    "group": "D__workspace_git_wx_assets_doc_main_js",
    "groupTitle": "D__workspace_git_wx_assets_doc_main_js",
    "name": ""
  },
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p> "
          },
          {
            "group": "Success 200",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p> "
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "./assets/main.js",
    "group": "D__workspace_git_wx_assets_main_js",
    "groupTitle": "D__workspace_git_wx_assets_main_js",
    "name": ""
  },
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p> "
          },
          {
            "group": "Success 200",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p> "
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "./doc/main.js",
    "group": "D__workspace_git_wx_doc_main_js",
    "groupTitle": "D__workspace_git_wx_doc_main_js",
    "name": ""
  },
  {
    "type": "get",
    "url": "/service/getJsConfig",
    "title": "对URL签名",
    "name": "_URL__",
    "group": "service",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>string</p> ",
            "optional": false,
            "field": "url",
            "description": "<p>url</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>string</p> ",
            "optional": false,
            "field": "callback",
            "description": "<p>callback</p> "
          }
        ]
      }
    },
    "sampleRequest": [
      {
        "url": "/service/getJsConfig"
      }
    ],
    "version": "0.0.0",
    "filename": "./api/controllers/ServiceController.js",
    "groupTitle": "service"
  },
  {
    "type": "post",
    "url": "/service/msg",
    "title": "发送微信模板消息",
    "name": "______",
    "group": "service",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>json</p> ",
            "optional": false,
            "field": "data",
            "description": "<p>消息体数据</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>string</p> ",
            "optional": false,
            "field": "touser",
            "description": "<p>用户ID</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>string</p> ",
            "optional": false,
            "field": "templateId",
            "description": "<p>后台设置的模板ID</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>string</p> ",
            "optional": false,
            "field": "url",
            "description": "<p>消息跳转链接</p> "
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例",
          "content": " data={\n         \"productType\": {\n         \"value\": \"商品名称:\",\n         \"color\": \"#333333\"\n         },\n         \"name\": {\n         \"value\": \"商品名称:\",\n         \"color\": \"#333333\"\n         },\n         \"time\": {\n         \"value\": \"商品名称:\",\n         \"color\": \"#333333\"\n         },\n         \"remark\": {\n         \"value\": \"备注:\",\n         \"color\": \"#333333\"\n         }\n     }\ntouser=18913\ntemplateId:S5TkyGdQeJHongw1lOiJX2aNEJbJrHTyCKJTZDehBT0\nurl:http://nong12.com",
          "type": "form-data"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/service/msg"
      }
    ],
    "version": "0.0.0",
    "filename": "./api/controllers/ServiceController.js",
    "groupTitle": "service"
  },
  {
    "type": "get",
    "url": "/service/accessToken",
    "title": "获取token",
    "name": "__token",
    "group": "service",
    "sampleRequest": [
      {
        "url": "/service/accessToken"
      }
    ],
    "version": "0.0.0",
    "filename": "./api/controllers/ServiceController.js",
    "groupTitle": "service"
  }
] });