|
|
@ -1,12 +1,16 @@ |
|
|
|
package com.hnac.hzims.bigmodel.zhipuai.controller; |
|
|
|
package com.hnac.hzims.bigmodel.zhipuai.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
|
|
|
import com.hnac.hzims.bigmodel.zhipuai.entity.ZhipuAnalysisInfoEntity; |
|
|
|
import com.hnac.hzims.bigmodel.zhipuai.service.ZhipuAnalysisInfoService; |
|
|
|
import com.hnac.hzims.bigmodel.zhipuai.service.ZhipuAnalysisInfoService; |
|
|
|
import com.hnac.hzims.bigmodel.zhipuai.vo.ZhipuAnalysisInfoVO; |
|
|
|
import com.hnac.hzims.bigmodel.zhipuai.vo.ZhipuAnalysisInfoVO; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
@ -36,4 +40,18 @@ public class ZhipuAnalysisInfoController { |
|
|
|
public R<Boolean> remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) { |
|
|
|
public R<Boolean> remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) { |
|
|
|
return R.status(analysisInfoService.removeByIds(Func.toLongList(",", ids))); |
|
|
|
return R.status(analysisInfoService.removeByIds(Func.toLongList(",", ids))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/selectPage") |
|
|
|
|
|
|
|
@ApiOperation("分页查询智谱分析配置信息") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
|
|
|
public R<IPage<ZhipuAnalysisInfoEntity>> selectPage(Query query, ZhipuAnalysisInfoEntity requestData) { |
|
|
|
|
|
|
|
return R.data(analysisInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(new ZhipuAnalysisInfoEntity(), requestData))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping("/update") |
|
|
|
|
|
|
|
@ApiOperation("更新智谱分析配置信息") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
|
|
|
public R<Boolean> update(@RequestBody @Validated ZhipuAnalysisInfoEntity requestData) { |
|
|
|
|
|
|
|
return R.status(analysisInfoService.updateById(requestData)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|