update SwaggerOperation
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
kamonwan taengsuk
2023-08-18 15:30:37 +07:00
parent 1080400c34
commit b078d3ff42
11 changed files with 152 additions and 131 deletions

View File

@@ -22,7 +22,7 @@ namespace rmutr_report.Controllers
{
this._setting = setting;
}
[SwaggerOperation("ร.3 คำชี้แจงงบดำเนินงาน")]
[HttpPost, Route("reports/operating_budget_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetRoThreeReport([FromRoute] string type, [FromBody] operating_budget_ro_three three)
@@ -65,7 +65,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงาน ค่าตอบแทนหัวหน้าภาควิชา")]
[HttpPost, Route("reports/compensation_head_department/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetComReport([FromRoute] string type, [FromBody] compensation_head three)
@@ -115,7 +115,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงาน ค่าตอบแทนหัวหน้าสาขาวิชา")]
[HttpPost, Route("reports/compensation_head_major/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetCom2Report([FromRoute] string type, [FromBody] compensation_head three)
@@ -165,6 +165,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานค่าสอนพิเศษ")]
[HttpPost, Route("reports/teaching_fee_extra_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachExReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -209,6 +210,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานค่าสอน")]
[HttpPost, Route("reports/teaching_fee_ro_three/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -253,6 +255,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานค่าสอนเกินภาระงาน")]
[HttpPost, Route("reports/teaching_fee_workload/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetTeachWorkloadReport([FromRoute] string type, [FromBody] teaching_fee_ro_three three)
@@ -297,6 +300,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานค่าวัสดุสำนักงาน")]
[HttpPost, Route("reports/material_office/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial1Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -346,6 +350,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุคอมพิวเตอร์")]
[HttpPost, Route("reports/material_computer/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial2Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -395,6 +400,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุการศึกษา")]
[HttpPost, Route("reports/material_education/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial3Report([FromRoute] string type, [FromBody] material_education three)
@@ -568,6 +574,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุหนังสือ")]
[HttpPost, Route("reports/material_book/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial4Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -617,6 +624,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุโฆษณาและเผยแพร่")]
[HttpPost, Route("reports/material_advertise/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial5Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -666,6 +674,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุงานสิ่งก่อสร้าง")]
[HttpPost, Route("reports/material_construction/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial6Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -715,6 +724,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุเชื้อเพลิงและหล่อลื่น")]
[HttpPost, Route("reports/material_fuel_lubricant/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial7Report([FromRoute] string type, [FromBody] material_fuel_lubricant three)
@@ -779,6 +789,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุไฟฟ้าและวิทยุ")]
[HttpPost, Route("reports/material_electric/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial8Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -828,6 +839,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุการเกษตร")]
[HttpPost, Route("reports/material_agricultural/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial9Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -877,6 +889,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุงานบ้านงานครัว")]
[HttpPost, Route("reports/material_housework/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial10Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -926,6 +939,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุวิทยาศาสตร์หรือการแพทย์")]
[HttpPost, Route("reports/material_science_medical/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial11Report([FromRoute] string type, [FromBody] material_ro_three three)
@@ -975,6 +989,7 @@ namespace rmutr_report.Controllers
return Ok();
}
[SwaggerOperation("รายงานวัสดุกีฬา")]
[HttpPost, Route("reports/material_sport/{type}")]
[ApiExplorerSettings(GroupName = "reports")]
public IActionResult GetMaterial12Report([FromRoute] string type, [FromBody] material_ro_three three)