# 1. 设备登录（获取Token）

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /app_clientv1.Pub/getClientToken:
    post:
      summary: 1. 设备登录（获取Token）
      deprecated: false
      description: |-
        用户名：`pt_smartpark.number`，密码：`pt_smartpark.pwd`

        token bady: {uid, smartpark_id}
      tags:
        - client 停车场设备端 📟/v1/Pub
        - client
      parameters:
        - name: X-Client
          in: header
          description: ''
          required: true
          example: '{{x_client}}'
          schema:
            type: string
        - name: X-ApifoxUser
          in: header
          description: ''
          required: true
          example: '{{apifox_user}}'
          schema:
            type: string
        - name: X-Time
          in: header
          description: ''
          required: true
          example: '{{timestamp}}'
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                username:
                  description: 用户名（test_jlw_computer/zhigong_computer）
                  example: test_jlw_computer
                  type: string
                password:
                  description: 密码
                  example: '123456'
                  type: string
              required:
                - username
                - password
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    x-apifox-orders: []
                  msg:
                    type: string
                  code:
                    type: integer
                required:
                  - data
                  - msg
                  - code
                x-apifox-orders:
                  - data
                  - msg
                  - code
              examples:
                '1':
                  summary: success
                  value:
                    data:
                      token: ...
                    msg: ''
                    code: 1
                '2':
                  summary: error
                  value:
                    data: {}
                    msg: err msg
                    code: 0
          headers: {}
          x-apifox-name: ok
      security: []
      x-apifox-folder: client 停车场设备端 📟/v1/Pub
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/2493394/apis/api-70863824-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://admin.api.test.domain.cn
    description: 测试环境
security: []

```
