swagger.yaml 19.2 KB
Newer Older
Mr.奇淼('s avatar
Mr.奇淼( 已提交
1
basePath: /
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
2
definitions:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
3 4 5 6 7 8
  api.AddMenuAuthorityInfo:
    properties:
      authorityId:
        type: string
      menus:
        items:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
9
          $ref: '#/definitions/sysModel.SysBaseMenu'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
10 11 12 13 14 15 16
        type: array
    type: object
  api.AuthorityIdInfo:
    properties:
      authorityId:
        type: string
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
17
  api.ChangePasswordStutrc:
18
    properties:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
19
      newPassword:
20
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
21
      password:
22
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
23
      username:
24 25
        type: string
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
26 27 28 29 30 31 32 33 34 35
  api.CreateApiParams:
    properties:
      description:
        type: string
      path:
        type: string
    type: object
  api.CreateAuthorityPatams:
    properties:
      authorityId:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
36
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
37 38 39
      authorityName:
        type: string
    type: object
40
  api.DeleteAuthorityPatams:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
41
    properties:
42
      authorityId:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
43
        type: integer
Mr.奇淼('s avatar
Mr.奇淼( 已提交
44
    type: object
45 46 47 48
  api.GetById:
    properties:
      id:
        type: number
Mr.奇淼('s avatar
Mr.奇淼( 已提交
49
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
50 51 52 53 54
  api.IdInfo:
    properties:
      id:
        type: number
    type: object
55
  api.RegistAndLoginStuct:
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
56
    properties:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
57
      password:
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
58
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
59
      username:
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
60 61
        type: string
    type: object
62 63 64 65 66 67 68
  api.SetUserAuth:
    properties:
      authorityId:
        type: string
      uuid:
        type: string
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
  dbModel.ExaFileUploadAndDownload:
    properties:
      key:
        type: string
      name:
        type: string
      tag:
        type: string
      url:
        type: string
    type: object
  modelInterface.PageInfo:
    properties:
      page:
        type: integer
      pageSize:
        type: integer
    type: object
  sysModel.SysApi:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
88 89 90
    properties:
      description:
        type: string
91 92
      group:
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
93 94 95
      path:
        type: string
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
96
  sysModel.SysBaseMenu:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
97 98 99
    properties:
      children:
        items:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
100
          $ref: '#/definitions/sysModel.SysBaseMenu'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
        type: array
      component:
        type: string
      hidden:
        type: boolean
      icon:
        type: string
      name:
        type: string
      nickName:
        type: string
      parentId:
        type: string
      path:
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
116
      sort:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
117
        type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
118
      title:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
119 120
        type: string
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
121
  sysModel.SysWorkflow:
122 123 124 125 126 127 128 129 130 131 132 133 134
    properties:
      workflowDescription:
        description: 工作流描述
        type: string
      workflowName:
        description: 工作流英文id
        type: string
      workflowNickName:
        description: 工作流名称
        type: string
      workflowStep:
        description: 工作流步骤
        items:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
135
          $ref: '#/definitions/sysModel.SysWorkflowStepInfo'
136 137
        type: array
    type: object
Mr.奇淼('s avatar
Mr.奇淼( 已提交
138
  sysModel.SysWorkflowStepInfo:
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
    properties:
      isEnd:
        description: 是否是完结流节点
        type: boolean
      isStrat:
        description: 是否是开始流节点
        type: boolean
      stepAuthorityID:
        description: 操作者级别id
        type: string
      stepName:
        description: 工作流名称
        type: string
      stepNo:
        description: 步骤id (第几步)
        type: number
Mr.奇淼('s avatar
Mr.奇淼( 已提交
155 156
      workflowID:
        description: 所属工作流ID
Mr.奇淼('s avatar
Mr.奇淼( 已提交
157 158
        type: integer
    type: object
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
159 160
info:
  contact: {}
Mr.奇淼('s avatar
Mr.奇淼( 已提交
161
  description: This is a sample Server pets
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
162
  license: {}
Mr.奇淼('s avatar
Mr.奇淼( 已提交
163 164
  title: Swagger Example API
  version: 0.0.1
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
165
paths:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
166
  /api/createApi:
167
    post:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
168 169
      consumes:
      - application/json
170
      parameters:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
171
      - description: 创建api
172 173 174 175
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
176
          $ref: '#/definitions/api.CreateApiParams'
177 178 179 180 181
          type: object
      produces:
      - application/json
      responses:
        "200":
Mr.奇淼('s avatar
Mr.奇淼( 已提交
182
          description: '{"success":true,"data":{},"msg":"获取成功"}'
183 184
          schema:
            type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
185 186
      security:
      - ApiKeyAuth: []
Mr.奇淼('s avatar
Mr.奇淼( 已提交
187
      summary: 创建基础api
188
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
189
      - SysApi
Mr.奇淼('s avatar
Mr.奇淼( 已提交
190
  /api/deleteApi:
191
    post:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
192 193
      consumes:
      - application/json
194
      parameters:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
195 196 197 198 199
      - description: 删除api
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
200
          $ref: '#/definitions/sysModel.SysApi'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
201 202 203 204 205 206 207 208 209 210
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
Mr.奇淼('s avatar
Mr.奇淼( 已提交
211
      summary: 删除指定api
Mr.奇淼('s avatar
Mr.奇淼( 已提交
212
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
213
      - SysApi
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
  /api/getAllApis:
    post:
      consumes:
      - application/json
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 获取所有的Api 不分页
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
229
      - SysApi
230
  /api/getApiById:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
    post:
      consumes:
      - application/json
      parameters:
      - description: 分页获取用户列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
251
      summary: 根据id获取api
Mr.奇淼('s avatar
Mr.奇淼( 已提交
252
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
253
      - SysApi
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
  /api/getApiList:
    post:
      consumes:
      - application/json
      parameters:
      - description: 分页获取API列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取API列表
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
277
      - SysApi
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
  /api/updataApi:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建api
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.CreateApiParams'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建基础api
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
301
      - SysApi
Mr.奇淼('s avatar
Mr.奇淼( 已提交
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
  /authority/createAuthority:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建角色
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.CreateAuthorityPatams'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建角色
      tags:
      - authority
  /authority/deleteAuthority:
    post:
      consumes:
      - application/json
      parameters:
      - description: 删除角色
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.DeleteAuthorityPatams'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除角色
      tags:
      - authority
Mr.奇淼('s avatar
Mr.奇淼( 已提交
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
  /authority/getAuthorityList:
    post:
      consumes:
      - application/json
      parameters:
      - description: 分页获取用户列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取角色列表
      tags:
      - authority
Mr.奇淼('s avatar
Mr.奇淼( 已提交
374 375 376 377
  /base/login:
    post:
      parameters:
      - description: 用户登录接口
378 379 380 381 382 383 384 385 386 387
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.RegistAndLoginStuct'
          type: object
      produces:
      - application/json
      responses:
        "200":
Mr.奇淼('s avatar
Mr.奇淼( 已提交
388
          description: '{"success":true,"data":{},"msg":"登陆成功"}'
389 390
          schema:
            type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
391
      summary: 用户登录
392
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
393
      - Base
Mr.奇淼('s avatar
Mr.奇淼( 已提交
394
  /base/regist:
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
395 396
    post:
      parameters:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
397
      - description: 用户注册接口
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
398 399 400 401
        in: body
        name: data
        required: true
        schema:
402
          $ref: '#/definitions/api.RegistAndLoginStuct'
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
403 404
          type: object
      produces:
405
      - application/json
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
406 407
      responses:
        "200":
Mr.奇淼('s avatar
Mr.奇淼( 已提交
408
          description: '{"success":true,"data":{},"msg":"注册成功"}'
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
409 410
          schema:
            type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
411
      summary: 用户注册账号
Mr.奇淼('s avatar
Mr.奇淼( 已提交
412
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
413
      - Base
Mr.奇淼('s avatar
Mr.奇淼( 已提交
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461
  /casbin/casbinPUpdata:
    post:
      consumes:
      - application/json
      parameters:
      - description: 更改角色api权限
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.CreateAuthorityPatams'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更改角色api权限
      tags:
      - casbin
  /casbin/getPolicyPathByAuthorityId:
    post:
      consumes:
      - application/json
      parameters:
      - description: 获取权限列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.CreateAuthorityPatams'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 获取权限列表
      tags:
      - casbin
Mr.奇淼('s avatar
Mr.奇淼( 已提交
462 463 464 465 466 467 468 469
  /fileUploadAndDownload/deleteFile:
    post:
      parameters:
      - description: 传入文件里面id即可
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
470
          $ref: '#/definitions/dbModel.ExaFileUploadAndDownload'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
471 472 473 474 475 476 477 478 479 480 481 482
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"返回成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除文件
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
483
      - ExaFileUploadAndDownload
484
  /fileUploadAndDownload/getFileList:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
485 486 487 488
    post:
      consumes:
      - application/json
      parameters:
489
      - description: 分页获取文件户列表
Mr.奇淼('s avatar
Mr.奇淼( 已提交
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
505 506
      summary: 分页文件列表
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
507
      - ExaFileUploadAndDownload
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
  /fileUploadAndDownload/upload:
    post:
      consumes:
      - multipart/form-data
      parameters:
      - description: 上传文件示例
        in: formData
        name: file
        required: true
        type: file
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"上传成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 上传文件示例
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
529
      - ExaFileUploadAndDownload
530 531 532 533 534 535 536 537 538 539
  /menu/addBaseMenu:
    post:
      consumes:
      - application/json
      parameters:
      - description: 新增菜单
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
540
          $ref: '#/definitions/sysModel.SysBaseMenu'
541 542 543 544 545 546 547 548 549 550 551
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 新增菜单
Mr.奇淼('s avatar
Mr.奇淼( 已提交
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598
      tags:
      - menu
  /menu/addMenuAuthority:
    post:
      consumes:
      - application/json
      parameters:
      - description: 增加menu和角色关联关系
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.AuthorityIdInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 获取指定角色menu
      tags:
      - authorityAndMenu
  /menu/deleteBaseMenu:
    post:
      consumes:
      - application/json
      parameters:
      - description: 删除菜单
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.IdInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623
      summary: 删除菜单
      tags:
      - menu
  /menu/getBaseMenuById:
    post:
      consumes:
      - application/json
      parameters:
      - description: 根据id获取菜单
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.GetById'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 根据id获取菜单
Mr.奇淼('s avatar
Mr.奇淼( 已提交
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693
      tags:
      - menu
  /menu/getBaseMenuTree:
    post:
      parameters:
      - description: 可以什么都不填
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.RegistAndLoginStuct'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"返回成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 获取用户动态路由
      tags:
      - authorityAndMenu
  /menu/getMenu:
    post:
      parameters:
      - description: 可以什么都不填
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.RegistAndLoginStuct'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"返回成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 获取用户动态路由
      tags:
      - authorityAndMenu
  /menu/getMenuList:
    post:
      consumes:
      - application/json
      parameters:
      - description: 分页获取基础menu列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取基础menu列表
      tags:
      - menu
694 695 696 697 698 699 700 701 702 703
  /menu/updataBaseMen:
    post:
      consumes:
      - application/json
      parameters:
      - description: 更新菜单
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
704
          $ref: '#/definitions/sysModel.SysBaseMenu'
705 706 707 708 709 710 711 712 713 714 715 716 717
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新菜单
      tags:
      - menu
Mr.奇淼('s avatar
Mr.奇淼( 已提交
718
  /user/changePassword:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
719 720 721 722 723 724 725
    post:
      parameters:
      - description: 用户修改密码
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
726
          $ref: '#/definitions/api.ChangePasswordStutrc'
Mr.奇淼('s avatar
Mr.奇淼( 已提交
727 728 729 730 731 732 733 734 735 736 737 738
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"修改成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用户修改密码
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
739
      - SysUser
740
  /user/getUserList:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
    post:
      consumes:
      - application/json
      parameters:
      - description: 分页获取用户列表
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/modelInterface.PageInfo'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取用户列表
762
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
763
      - SysUser
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786
  /user/setUserAuthority:
    post:
      consumes:
      - application/json
      parameters:
      - description: 设置用户权限
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.SetUserAuth'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"修改成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 设置用户权限
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
787
      - SysUser
788 789 790 791 792 793 794 795 796 797 798 799
  /user/uploadHeaderImg:
    post:
      consumes:
      - multipart/form-data
      parameters:
      - description: 用户上传头像
        in: formData
        name: headerImg
        required: true
        type: file
      - description: 用户上传头像
        in: formData
Mr.奇淼('s avatar
Mr.奇淼( 已提交
800
        name: username
801 802 803 804 805 806 807 808 809
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"上传成功"}'
          schema:
            type: string
Mr.奇淼('s avatar
Mr.奇淼( 已提交
810 811
      security:
      - ApiKeyAuth: []
812 813
      summary: 用户上传头像
      tags:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
814
      - SysUser
815 816 817 818 819 820 821 822
  /workflow/createWorkFlow:
    post:
      parameters:
      - description: 注册工作流接口
        in: body
        name: data
        required: true
        schema:
Mr.奇淼('s avatar
Mr.奇淼( 已提交
823
          $ref: '#/definitions/sysModel.SysWorkflow'
824 825 826 827 828 829 830 831 832 833 834
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"注册成功"}'
          schema:
            type: string
      summary: 注册工作流
      tags:
      - workflow
Mr.奇淼('s avatar
Mr.奇淼( 已提交
835 836 837 838 839
securityDefinitions:
  ApiKeyAuth:
    in: header
    name: x-token
    type: apiKey
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
840
swagger: "2.0"