Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program set up the line interface


May 18, 2021 WeChat Mini Program Development Document


Table of contents


Set up the line interface

Set up bus/subway lines.

1, request parameters

The name of the argument Type Required Note
type Int Y Type 0-Metro 1-Bus
conf object Y The set line configuration

The contents of the conf are as follows:

The name of the argument Type Required Note
line_list away Y Line information

Each conf.line_list of them is as follows:

The name of the argument Type Required Note
Id Int Y The unique id of the line
start_station string Y The starting station
end_station string Y Terminal
line_name string Y The line name

2, return parameters

The name of the argument Type Required Note
errcode Int Y Error code
errmsg string Y The error message