|
@@ -6,7 +6,6 @@ import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.gyee.table.entity.ComponentModificationRecord;
|
|
import com.gyee.table.entity.ComponentModificationRecord;
|
|
import com.gyee.table.entity.Configurationinfo;
|
|
import com.gyee.table.entity.Configurationinfo;
|
|
-import com.gyee.table.jwt.annotation.PassToken;
|
|
|
|
import com.gyee.table.result.Result;
|
|
import com.gyee.table.result.Result;
|
|
import com.gyee.table.service.IComponentModificationRecordService;
|
|
import com.gyee.table.service.IComponentModificationRecordService;
|
|
import com.gyee.table.service.IConfigurationinfoService;
|
|
import com.gyee.table.service.IConfigurationinfoService;
|
|
@@ -42,7 +41,7 @@ public class ComponentInformationController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@PostMapping("/componentList")
|
|
@PostMapping("/componentList")
|
|
- @PassToken
|
|
|
|
|
|
+ //@PassToken
|
|
public TableDataInfo componentList(@RequestBody Configurationinfo configurationinfo) {
|
|
public TableDataInfo componentList(@RequestBody Configurationinfo configurationinfo) {
|
|
PageHelper.startPage(configurationinfo.getPageNumber(), configurationinfo.getPageSize(), true);
|
|
PageHelper.startPage(configurationinfo.getPageNumber(), configurationinfo.getPageSize(), true);
|
|
List<Configurationinfo> list = configurationinfoService.selectConfigurationinfoList(configurationinfo);
|
|
List<Configurationinfo> list = configurationinfoService.selectConfigurationinfoList(configurationinfo);
|
|
@@ -56,7 +55,7 @@ public class ComponentInformationController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@PostMapping("/addComponent")
|
|
@PostMapping("/addComponent")
|
|
- @PassToken
|
|
|
|
|
|
+ //@PassToken
|
|
public JSONObject addComponent(@RequestBody Configurationinfo configurationinfo) {
|
|
public JSONObject addComponent(@RequestBody Configurationinfo configurationinfo) {
|
|
configurationinfo.setId(Long.toString(IdUtil.getSnowflake(1, 1).nextId()));
|
|
configurationinfo.setId(Long.toString(IdUtil.getSnowflake(1, 1).nextId()));
|
|
configurationinfoService.save(configurationinfo);
|
|
configurationinfoService.save(configurationinfo);
|
|
@@ -70,7 +69,7 @@ public class ComponentInformationController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@PostMapping("/updateComponent")
|
|
@PostMapping("/updateComponent")
|
|
- @PassToken
|
|
|
|
|
|
+ //@PassToken
|
|
public JSONObject updateComponent(@RequestBody Configurationinfo configurationinfo) {
|
|
public JSONObject updateComponent(@RequestBody Configurationinfo configurationinfo) {
|
|
configurationinfoService.updateById(configurationinfo);
|
|
configurationinfoService.updateById(configurationinfo);
|
|
ComponentModificationRecord componentModificationRecord = new ComponentModificationRecord();
|
|
ComponentModificationRecord componentModificationRecord = new ComponentModificationRecord();
|
|
@@ -88,7 +87,7 @@ public class ComponentInformationController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@DeleteMapping("/deleteComponent/{id}")
|
|
@DeleteMapping("/deleteComponent/{id}")
|
|
- @PassToken
|
|
|
|
|
|
+ //@PassToken
|
|
public JSONObject deleteComponent(@PathVariable String id) {
|
|
public JSONObject deleteComponent(@PathVariable String id) {
|
|
configurationinfoService.removeById(id);
|
|
configurationinfoService.removeById(id);
|
|
return Result.success();
|
|
return Result.success();
|