Skip to content

Commit

Permalink
Merge pull request #865 from NUTFes/develop
Browse files Browse the repository at this point in the history
7月28日アップデート
  • Loading branch information
Kubosaka authored Jul 28, 2024
2 parents 9e10c12 + db00c59 commit dd64a07
Show file tree
Hide file tree
Showing 164 changed files with 4,218 additions and 435 deletions.
309 changes: 265 additions & 44 deletions api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,49 @@ const docTemplate = `{
}
},
},
"/purchaseorders/send/{id}": {
"post": {
tags: ["purchase_order"],
"description": "IDで指定されたpurchase_orderのslackへメッセージ送信",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"type": "integer"
},
{
"in": "body",
"name": "purchase_items",
"type": "array",
"items":{
"$ref": "#/definitions/purchaseItem"
},
},
]
}
},
"/purchaseorders/details/unregistered/{year}": {
"get": {
tags: ["purchase_order"],
"description": "年度で指定されたreportsに未登録のpurchase_orderに紐づくuserとpurchase_itemを取得",
"parameters": [
{
"name": "year",
"in": "path",
"description": "year",
"required": true,
"type": "integer"
}
],
"responses": {
"200": {
"description": "IDで指定されたreportsに未登録のpurchase_orderに紐づくuserとpurchase_itemを取得",
}
}
},
},
"/purchasereports": {
"get": {
tags: ["purchase_report"],
Expand Down Expand Up @@ -1748,6 +1791,118 @@ const docTemplate = `{
}
},
},
"/receipts": {
"get": {
tags: ["receipt"],
"description": "receiptの一覧を取得",
"responses": {
"200": {
"description": "receiptの一覧の取得",
}
}
},
"post": {
tags: ["receipt"],
"description": "receiptの作成",
responses: {
"200": {
"description": "create されたreceiptが返ってくる",
}
},
"parameters": [
{
"in": "body",
"name": "receipt",
"schema":{
"$ref": "#/definitions/receipt"
},
},
],
},
},
"/receipts/{id}": {
"get": {
tags: ["receipt"],
"description": "IDで指定されたreceiptの取得",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"type": "integer"
}
],
"responses": {
"200": {
"description": "receiptの取得",
}
}
},
"put": {
tags: ["receipt"],
"description": "receiptの更新",
responses: {
"200": {
"description": "更新されたreceiptが返ってくる",
}
},
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"type": "integer"
},
{
"in": "body",
"name": "receipt",
"schema":{
"$ref": "#/definitions/receipt"
},
},
],
},
"delete": {
tags: ["receipt"],
"description": "IDを指定してreceiptの削除",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"type": "integer"
}
],
responses: {
"200": {
"description": "receiptの削除完了",
}
},
},
},
"/receipts/reports/{id}": {
"get": {
tags: ["receipt"],
"description": "purchaseReportIDで指定されたreceiptの取得",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"type": "integer"
}
],
"responses": {
"200": {
"description": "reportsIDを指定してreceiptの取得",
}
}
},
},
"/sources": {
"get": {
tags: ["source"],
Expand Down Expand Up @@ -2027,7 +2182,7 @@ const docTemplate = `{
},
"delete": {
tags: ["sponsorstyle"],
"description": "IDを指定してsponsorstyleの削除",
"description": "IDを指定してsponsorstyleの論理削除",
"parameters": [
{
"name": "id",
Expand All @@ -2039,7 +2194,7 @@ const docTemplate = `{
],
responses: {
"200": {
"description": "sponsorstyleの削除完了",
"description": "sponsorstyleの論理削除完了",
}
},
},
Expand Down Expand Up @@ -2107,26 +2262,26 @@ const docTemplate = `{
],
},
},
"/teachers/delete": {
"delete": {
tags: ["teacher"],
"description": "teacherの複数削除",
responses: {
"200": {
"description": "複数のteacherをidで削除できる",
}
},
"parameters": [
{
"in": "body",
"name": "destroyTeacherIDs",
"schema":{
"$ref": "#/definitions/destroyTeacherIDs"
},
},
],
"/teachers/delete": {
"delete": {
tags: ["teacher"],
"description": "teacherの複数削除",
responses: {
"200": {
"description": "複数のteacherをidで削除できる",
}
},
"parameters": [
{
"in": "body",
"name": "destroyTeacherIDs",
"schema":{
"$ref": "#/definitions/destroyTeacherIDs"
},
},
],
},
},
"/teachers/{id}": {
"get": {
tags: ["teacher"],
Expand Down Expand Up @@ -2758,34 +2913,100 @@ const docTemplate = `{
"purchaseOrderID"
},
},
"destroyTeacherIDs":{
"properties":{
"deleteIDs":{
"type": "array",
"items": {
"type": "number"
},
example: []
"purchaseItem":{
"properties":{
"item":{
"type": "string",
"example": "name",
},
"price":{
"type": "int",
"example": 0,
},
"quantity":{
"type": "int",
"example": 0,
},
"detail":{
"type": "string",
"example": "",
},
"url":{
"type": "string",
"example": "",
},
"purchaseOrderID":{
"type": "int",
"example": 1,
},
"financeCheck":{
"type": "boolean",
"example": false,
},
},
"required":{
"item",
"price",
"quantity",
"financeCheck",
"purchaseOrderID"
},
},
"destroyTeacherIDs":{
"properties":{
"deleteIDs":{
"type": "array",
"items": {
"type": "number"
},
example: []
},
"required":{
"deleteIDs",
},
},
"destroyUserIDs":{
"properties":{
"deleteIDs":{
"type": "array",
"items": {
"type": "number"
},
example: []
},
"required":{
"deleteIDs",
},
},
"destroyUserIDs":{
"properties":{
"deleteIDs":{
"type": "array",
"items": {
"type": "number"
},
example: []
},
"required":{
"deleteIDs",
},
},
},
"required":{
"deleteIDs",
},
},
"receipt":{
"properties":{
"purchaseReportID":{
"type": "int",
"example": 1,
},
"bucketName":{
"type": "string",
"example": "",
},
"fileName":{
"type": "string",
"example": "",
},
"fileType":{
"type": "string",
"example": "",
},
"remark":{
"type": "string",
"example": "",
},
},
"required":{
"purchaseReportID",
},
},
"year_periods":{
"properties":{
"year":{
Expand Down
Loading

0 comments on commit dd64a07

Please sign in to comment.