//package com.prolog.cs.biz.inbound.controller.task;
//
//import java.util.List;
//
//import javax.validation.constraints.NotEmpty;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.prolog.cs.biz.inbound.constant.ValidatorGroup.validAdd;
//import com.prolog.cs.biz.inbound.constant.ValidatorGroup.validEdit;
//import com.prolog.cs.biz.inbound.dto.PageParam;
//import com.prolog.cs.biz.inbound.dto.task.TaskHostedDetailDTO;
//import com.prolog.cs.biz.inbound.service.task.TaskHostedDetailService;
//import com.prolog.framework.common.message.RestMessage;
//import com.prolog.framework.core.pojo.Page;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
///**
// * @Description // TODO 
// * @Date 2021-03-24 
// */
//
//@Deprecated
//@Api(tags = "")
//@RestController
//@RequestMapping("/taskHostedDetail")
//public class TaskHostedDetailController {
//
//	@Resource
//	private TaskHostedDetailService taskHostedDetailService;
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("add")
//	@PostMapping("/add")
//	public RestMessage<Object> add(@Validated(validAdd.class) @RequestBody TaskHostedDetailDTO taskHostedDetailDTO){
//		return RestMessage.newInstance(true, "addSuccess", taskHostedDetailService.add(taskHostedDetailDTO));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("edit")
//	@PostMapping("/edit")
//	public RestMessage<Object> edit(@Validated(validEdit.class) @RequestBody TaskHostedDetailDTO taskHostedDetailDTO){
//		return RestMessage.newInstance(true, "editSuccess", taskHostedDetailService.edit(null,taskHostedDetailDTO));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("del by ids")
//	@PostMapping("/delIds")
//	public RestMessage<Object> delIds(@NotEmpty(message = "collection is empty") @RequestBody List<String> pkIdList) {
//		return RestMessage.newInstance(true, "delIdsSuccess", taskHostedDetailService.delIds(pkIdList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition page")
//	@GetMapping("/page")
//	public RestMessage<Page<TaskHostedDetailDTO>> list(TaskHostedDetailDTO taskHostedDetailDTO,PageParam pageParam) throws Exception {
//		return RestMessage.newInstance(true, "pageSuccess", taskHostedDetailService.findList(taskHostedDetailDTO,pageParam));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchAdd")
//	@PostMapping("/batchAdd")
//	public RestMessage<Object> batchAdd(@NotEmpty(message = "collection is empty") @RequestBody List<TaskHostedDetailDTO> taskHostedDetailDTOList) {
//		return RestMessage.newInstance(true, "batchAddSuccess", taskHostedDetailService.batchAdd(taskHostedDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("batchEdit")
//	@PostMapping("/batchEdit")
//	public RestMessage<Object> batchEdit(@NotEmpty(message = "collection is empty")@RequestBody List<TaskHostedDetailDTO> taskHostedDetailDTOList) {
//		return RestMessage.newInstance(true, "batchEditSuccess", taskHostedDetailService.batchEdit(taskHostedDetailDTOList));
//	}
//
//	/**
//	* // TODO
//	*/
//	@ApiOperation("condition findAll")
//	@PostMapping("/findAll")
//	public RestMessage<List<TaskHostedDetailDTO>> findAll(@RequestBody(required = false) TaskHostedDetailDTO taskHostedDetailDTO) {
//		return RestMessage.newInstance(true, "listAllSuccess", taskHostedDetailService.findAll(taskHostedDetailDTO));
//	}
//	/**
//	* // TODO
//	*/
//	@ApiOperation("findByPkId")
//	@GetMapping("/findByPkId")
//	public RestMessage<TaskHostedDetailDTO> findByPkId(@NotEmpty(message = "pkId is empty") String pkId){
//		return RestMessage.newInstance(true, "findByPkIdSuccess", taskHostedDetailService.findByPkId(pkId));
//	}
//}
