| | |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter; |
| | | import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 三说会堂业务中心管理控制器 |
| | | * */ |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/sanshuo/industryCenter") |
| | | public class ComSanShuoIndustryCenterApi extends BaseController { |
| | |
| | | |
| | | /** |
| | | * 添加业务中心 |
| | | * */ |
| | | */ |
| | | @PostMapping |
| | | public R add(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){ |
| | | comSanShuoIndustryCenterDTO.setCreateBy(this.getLoginUserInfo().getName()); |
| | |
| | | |
| | | /** |
| | | * 修改业务中心 |
| | | * */ |
| | | */ |
| | | @PutMapping |
| | | public R update(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){ |
| | | return comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO); |
| | |
| | | |
| | | /** |
| | | * 删除业务中心 |
| | | * */ |
| | | */ |
| | | @DeleteMapping("/remove") |
| | | public R remove(@RequestParam("id") Long id){ |
| | | ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(id); |
| | |
| | | |
| | | /** |
| | | * 重置密码 |
| | | * */ |
| | | */ |
| | | @PostMapping("/resetPass") |
| | | public R resetPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){ |
| | | ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comSanShuoIndustryCenterDTO.getId()); |