123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711 |
- {
- "swagger": "2.0",
- "info": {
- "description": "禅道 dev 禅道管理后台",
- "version": "1.0",
- "title": "禅道 dev 禅道管理后台"
- },
- "host": "192.168.0.135:8085",
- "basePath": "/",
- "tags": [{
- "name": "个人使用",
- "description": "Personal Controller"
- }, {
- "name": "财务使用",
- "description": "Finance Controller"
- }, {
- "name": "部门使用",
- "description": "Dept Controller"
- }],
- "paths": {
- "/api/dept/byDetail": {
- "post": {
- "tags": ["部门使用"],
- "summary": "月详情(date:当月日期:yyyy-MM-dd",
- "operationId": "byDetailUsingPOST",
- "consumes": ["application/json"],
- "produces": ["*/*"],
- "parameters": [{
- "in": "body",
- "name": "param",
- "description": "param",
- "required": true,
- "schema": {
- "originalRef": "DeptPageDto",
- "$ref": "#/definitions/DeptPageDto"
- }
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«DetailVo»",
- "$ref": "#/definitions/Result«DetailVo»"
- }
- },
- "201": {
- "description": "Created"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/dept/byMonth": {
- "post": {
- "tags": ["部门使用"],
- "summary": "月统计(date:当月日期:yyyy-MM-dd)",
- "operationId": "byMonthUsingPOST",
- "consumes": ["application/json"],
- "produces": ["*/*"],
- "parameters": [{
- "in": "body",
- "name": "param",
- "description": "param",
- "required": true,
- "schema": {
- "originalRef": "DeptPageDto",
- "$ref": "#/definitions/DeptPageDto"
- }
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«MonthVo»",
- "$ref": "#/definitions/Result«MonthVo»"
- }
- },
- "201": {
- "description": "Created"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/dept/excelByDetail": {
- "post": {
- "tags": ["部门使用"],
- "summary": "月详情(excel)(date:当月日期:yyyy-MM-dd",
- "operationId": "excelByDetailUsingPOST",
- "consumes": ["application/json"],
- "produces": ["*/*"],
- "parameters": [{
- "in": "body",
- "name": "param",
- "description": "param",
- "required": true,
- "schema": {
- "originalRef": "DeptDto",
- "$ref": "#/definitions/DeptDto"
- }
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«DetailVo»",
- "$ref": "#/definitions/Result«DetailVo»"
- }
- },
- "201": {
- "description": "Created"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/dept/excelByMonth": {
- "post": {
- "tags": ["部门使用"],
- "summary": "月统计(excel)(date:当月日期:yyyy-MM-dd)",
- "operationId": "excelByMonthUsingPOST",
- "consumes": ["application/json"],
- "produces": ["*/*"],
- "parameters": [{
- "in": "body",
- "name": "param",
- "description": "param",
- "required": true,
- "schema": {
- "originalRef": "DeptDto",
- "$ref": "#/definitions/DeptDto"
- }
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«MonthVo»",
- "$ref": "#/definitions/Result«MonthVo»"
- }
- },
- "201": {
- "description": "Created"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/dept/list": {
- "get": {
- "tags": ["部门使用"],
- "summary": "部门列表",
- "operationId": "listUsingGET",
- "produces": ["*/*"],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result",
- "$ref": "#/definitions/Result"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/finance/excelByDetail/{date}": {
- "get": {
- "tags": ["财务使用"],
- "summary": "月详情(date:当月日期:yyyy-MM-dd)",
- "operationId": "excelByDetailUsingGET",
- "produces": ["*/*"],
- "parameters": [{
- "name": "date",
- "in": "path",
- "description": "date",
- "required": true,
- "type": "string"
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«DetailVo»",
- "$ref": "#/definitions/Result«DetailVo»"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/finance/excelByMonth/{date}": {
- "get": {
- "tags": ["财务使用"],
- "summary": "月总计(date:当月日期:yyyy-MM-dd)",
- "operationId": "excelByMonthUsingGET",
- "produces": ["*/*"],
- "parameters": [{
- "name": "date",
- "in": "path",
- "description": "date",
- "required": true,
- "type": "string"
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«FinanceMonthVo»",
- "$ref": "#/definitions/Result«FinanceMonthVo»"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/personal/getUserList": {
- "get": {
- "tags": ["个人使用"],
- "summary": "用户列表",
- "operationId": "getUserListUsingGET",
- "produces": ["*/*"],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result",
- "$ref": "#/definitions/Result"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/personal/workByMonth/{account}/{date}": {
- "get": {
- "tags": ["个人使用"],
- "summary": "月统计(date:当月日期:yyyy-MM-dd)",
- "operationId": "workByMonthUsingGET",
- "produces": ["*/*"],
- "parameters": [{
- "name": "account",
- "in": "path",
- "description": "account",
- "required": true,
- "type": "string"
- }, {
- "name": "date",
- "in": "path",
- "description": "date",
- "required": true,
- "type": "string"
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result",
- "$ref": "#/definitions/Result"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- },
- "/api/personal/workByMonthDetail": {
- "post": {
- "tags": ["个人使用"],
- "summary": "月详情(date:当月日期:yyyy-MM-dd)",
- "description": "多参数查询工时",
- "operationId": "effortByMonthExcelUsingPOST",
- "consumes": ["application/json"],
- "produces": ["*/*"],
- "parameters": [{
- "in": "body",
- "name": "param",
- "description": "param",
- "required": true,
- "schema": {
- "originalRef": "PersonalPageDto",
- "$ref": "#/definitions/PersonalPageDto"
- }
- }],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "originalRef": "Result«DetailVo»",
- "$ref": "#/definitions/Result«DetailVo»"
- }
- },
- "201": {
- "description": "Created"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [{
- "Authorization": ["global"]
- }],
- "deprecated": false,
- "x-order": "2147483647"
- }
- }
- },
- "securityDefinitions": {
- "Authorization": {
- "type": "apiKey",
- "name": "token",
- "in": "header"
- }
- },
- "definitions": {
- "DeptDto": {
- "type": "object",
- "required": ["date", "deptId"],
- "properties": {
- "date": {
- "type": "string",
- "description": "日期,yyyy-MM-dd"
- },
- "deptId": {
- "type": "string",
- "description": "部门id"
- }
- },
- "title": "DeptDto"
- },
- "DeptPageDto": {
- "type": "object",
- "required": ["date", "deptId"],
- "properties": {
- "date": {
- "type": "string",
- "description": "日期,yyyy-MM-dd"
- },
- "deptId": {
- "type": "string",
- "description": "部门id"
- },
- "pageNum": {
- "type": "integer",
- "format": "int32",
- "description": "起始页码,默认0为第一页"
- },
- "pageSize": {
- "type": "integer",
- "format": "int32",
- "description": "每页数量"
- },
- "searchKey": {
- "type": "string",
- "description": "搜索条件"
- }
- },
- "title": "DeptPageDto"
- },
- "DetailVo": {
- "type": "object",
- "properties": {
- "account": {
- "type": "string",
- "description": "账号"
- },
- "code": {
- "type": "string",
- "description": "项目号"
- },
- "consumed": {
- "type": "string",
- "description": "消耗时间, 单位是小时"
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "description": "日期"
- },
- "deptId": {
- "type": "string",
- "description": "部门id"
- },
- "deptName": {
- "type": "string",
- "description": "部门名称"
- },
- "project": {
- "type": "integer",
- "format": "int32",
- "description": "项目id"
- },
- "projectName": {
- "type": "string",
- "description": "项目名称"
- },
- "realname": {
- "type": "string",
- "description": "真实姓名"
- },
- "slack": {
- "type": "string",
- "description": "工号"
- },
- "task": {
- "type": "string",
- "description": "任务号"
- }
- },
- "title": "DetailVo"
- },
- "FinanceMonthVo": {
- "type": "object",
- "properties": {
- "account": {
- "type": "string",
- "description": "账号"
- },
- "code": {
- "type": "string",
- "description": "项目号"
- },
- "consumed": {
- "type": "string",
- "description": "消耗时间, 单位是天"
- },
- "deptName": {
- "type": "string",
- "description": "部门名称"
- },
- "projectName": {
- "type": "string",
- "description": "项目名称"
- },
- "realname": {
- "type": "string",
- "description": "真实姓名"
- },
- "slack": {
- "type": "string",
- "description": "工号"
- },
- "task": {
- "type": "string",
- "description": "任务号"
- }
- },
- "title": "FinanceMonthVo"
- },
- "MonthVo": {
- "type": "object",
- "properties": {
- "account": {
- "type": "string",
- "description": "账号"
- },
- "consumed": {
- "type": "string",
- "description": "消耗时间, 单位是天"
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "description": "日期"
- },
- "deptName": {
- "type": "string",
- "description": "部门名称"
- },
- "realname": {
- "type": "string",
- "description": "真实姓名"
- }
- },
- "title": "MonthVo"
- },
- "PersonalPageDto": {
- "type": "object",
- "required": ["date"],
- "properties": {
- "account": {
- "type": "string",
- "description": "账号"
- },
- "date": {
- "type": "string",
- "description": "日期,yyyy-MM-dd"
- },
- "pageNum": {
- "type": "integer",
- "format": "int32",
- "description": "起始页码,默认0为第一页"
- },
- "pageSize": {
- "type": "integer",
- "format": "int32",
- "description": "每页数量"
- },
- "searchKey": {
- "type": "string",
- "description": "搜索条件"
- }
- },
- "title": "PersonalPageDto"
- },
- "Result": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32",
- "description": "处理状态:0: 成功, 1: 失败"
- },
- "data": {
- "type": "object",
- "description": "返回数据"
- },
- "msg": {
- "type": "string",
- "description": "消息"
- }
- },
- "title": "Result"
- },
- "Result«DetailVo»": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32",
- "description": "处理状态:0: 成功, 1: 失败"
- },
- "data": {
- "description": "返回数据",
- "originalRef": "DetailVo",
- "$ref": "#/definitions/DetailVo"
- },
- "msg": {
- "type": "string",
- "description": "消息"
- }
- },
- "title": "Result«DetailVo»"
- },
- "Result«FinanceMonthVo»": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32",
- "description": "处理状态:0: 成功, 1: 失败"
- },
- "data": {
- "description": "返回数据",
- "originalRef": "FinanceMonthVo",
- "$ref": "#/definitions/FinanceMonthVo"
- },
- "msg": {
- "type": "string",
- "description": "消息"
- }
- },
- "title": "Result«FinanceMonthVo»"
- },
- "Result«MonthVo»": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32",
- "description": "处理状态:0: 成功, 1: 失败"
- },
- "data": {
- "description": "返回数据",
- "originalRef": "MonthVo",
- "$ref": "#/definitions/MonthVo"
- },
- "msg": {
- "type": "string",
- "description": "消息"
- }
- },
- "title": "Result«MonthVo»"
- }
- }
- }
|