2. 【App】公司接口

2.1. 获取当前用户公司信息

Type: GET

Author: Timothy

Content-Type: application/x-www-form-urlencoded

Description: 获取当前用户公司信息

Request-example:

curl -X GET -i '/corp/queryMine'

Response-fields:

Field Type Description Since

id

int32

ID

-

name

string

公司名称

-

fullname

string

公司全称

-

captain

string

公司法人

-

nature

string

公司性质

-

code

string

信用代码

-

foundation

string

创办日期

-

address

string

注册地址

-

createDate

string

添加时间

-

updateDate

string

更新时间

-

Response-example:

{
  "id": 0,
  "name": "",
  "fullname": "",
  "captain": "",
  "nature": "",
  "code": "",
  "foundation": "yyyy-MM-dd",
  "address": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss"
}

2.2. 获取指定公司信息

Type: GET

Author: Timothy

Content-Type: application/x-www-form-urlencoded

Description: 获取指定公司信息

Query-parameters:

Parameter Type Description Required Since

id

int32

公司ID

false

-

Request-example:

curl -X GET -i '/corp/queryCorp?id=0&=901'

Response-fields:

Field Type Description Since

id

int32

ID

-

name

string

公司名称

-

fullname

string

公司全称

-

captain

string

公司法人

-

nature

string

公司性质

-

code

string

信用代码

-

foundation

string

创办日期

-

address

string

注册地址

-

createDate

string

添加时间

-

updateDate

string

更新时间

-

Response-example:

{
  "id": 0,
  "name": "",
  "fullname": "",
  "captain": "",
  "nature": "",
  "code": "",
  "foundation": "yyyy-MM-dd",
  "address": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss"
}