|
|
@ -4,10 +4,8 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.CustomerTemplateListFormDTO; |
|
|
|
import com.epmet.dto.form.GetTemplateListFormDTO; |
|
|
|
import com.epmet.dto.form.TemplateListV2FormDTO; |
|
|
|
import com.epmet.dto.result.CustomerTemplateListResultDTO; |
|
|
|
import com.epmet.dto.result.GetTemplateListResultDTO; |
|
|
|
import com.epmet.dto.result.TemplateListV2ResultDTO; |
|
|
|
import com.epmet.service.PersonalTemplateService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -39,12 +37,6 @@ public class PersonalTemplateController { |
|
|
|
return new Result<List<GetTemplateListResultDTO>>().ok(personalTemplateService.templateList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("templatelistv2") |
|
|
|
public Result<List<TemplateListV2ResultDTO>> templateList(@RequestBody TemplateListV2FormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<List<TemplateListV2ResultDTO>>().ok(personalTemplateService.templateListV2(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return |
|
|
|
* @Description 获取客户两个端站内信模板Id |
|
|
|