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