请求例子:
apirq('dnseg', {
method: "post",
data: {
"type": 1,
"org_type": "1",
"org_id": "1000000000000000",
"description": "系统的单子",
"manage_pool": [
{
"start_no": "A10000",
"end_no": "A10240",
"length": 6,
"segment": 2,
"rules": [
{
"split_id": 1,
"split_length": 1,
"srule": "PC26",
"prechars": "ABCDEFGHIJKLMOPQRSTUVWXYZ",
"sfun": "NOFN",
"precfn": ""
},
{
"split_id": 2,
"split_length": 5,
"srule": "PN10",
"prechars": "0123456789",
"sfun": "NOFN",
"precfn": ""
}
]
}
],
"selfuse_pool": [
{
"start_no": "A10000",
"end_no": "A10040",
"length": 6,
"segment": 2,
"rules": [
{
"split_id": 1,
"split_length": 1,
"srule": "PC26",
"prechars": "ABCDEFGHIJKLMOPQRSTUVWXYZ",
"sfun": "NOFN",
"precfn": ""
},
{
"split_id": 2,
"split_length": 5,
"srule": "PN10",
"prechars": "0123456789",
"sfun": "NOFN",
"precfn": ""
}
]
}
],
"subord_pool": [
{
"start_no": "A10041",
"end_no": "A10240",
"length": 6,
"segment": 2,
"rules": [
{
"split_id": 1,
"split_length": 1,
"srule": "PC26",
"prechars": "ABCDEFGHIJKLMOPQRSTUVWXYZ",
"sfun": "NOFN",
"precfn": ""
},
{
"split_id": 2,
"split_length": 5,
"srule": "PN10",
"prechars": "0123456789",
"sfun": "NOFN",
"precfn": ""
}
]
}
],
"spare_pool": []
}
})
返回数据结果:
{
"code": 0,
"msg": "ok",
"time": "1527061275",
"data": 1
}