Merge remote-tracking branch 'origin/master'
commit
4814dd5722
|
@ -5,6 +5,7 @@ import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
|
|||
import com.muyu.common.core.domain.Result;
|
||||
|
||||
import com.muyu.market.domian.Defined;
|
||||
import com.muyu.market.domian.Logs;
|
||||
import com.muyu.market.domian.config.PageParam;
|
||||
import com.muyu.market.domian.req.DefinedReq;
|
||||
import com.muyu.master.service.DefinedService;
|
||||
|
@ -45,7 +46,7 @@ public class DefinedController {
|
|||
|
||||
|
||||
/**
|
||||
* 接口列表 分页
|
||||
* 接口列表 分页 查询
|
||||
*/
|
||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||
@Operation(summary = "查询",description = "根据接口的名称 有效期 等可以进行筛选")
|
||||
|
@ -88,13 +89,27 @@ public class DefinedController {
|
|||
@PutMapping("/{definedId}")
|
||||
@Operation(summary = "修改", description = "通过ID修改信息")
|
||||
public Result<String> updateById(
|
||||
@Validated @RequestBody Defined defined,
|
||||
@Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
|
||||
@PathVariable("definedId") Long definedId) {
|
||||
@Validated @RequestBody Defined defined
|
||||
) {
|
||||
|
||||
definedService.updateById(defined);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询信息
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary = "根据id获取信息",description = "根据id获取信息")
|
||||
@GetMapping("/{definedId}")
|
||||
public Result<Defined> findById(@PathVariable("definedId") Long definedId){
|
||||
definedService.getById(definedId);
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue