Browse Source

不满意信件申诉初始化

master
21819 2 years ago
parent
commit
9c10e8b509
  1. 18
      mailbox-lan/src/main/java/com/biutag/lan/controller/MailAppealController.java
  2. 44
      mailbox-lan/src/main/java/com/biutag/lan/domain/MailAppeal.java
  3. 8
      mailbox-lan/src/main/java/com/biutag/lan/mapper/MailAppealMapper.java
  4. 45
      mailbox-lan/src/main/java/com/biutag/lan/service/MailAppealService.java

18
mailbox-lan/src/main/java/com/biutag/lan/controller/MailAppealController.java

@ -0,0 +1,18 @@
package com.biutag.lan.controller;
import com.biutag.lan.service.MailAppealService;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("api/appeal")
@RestController
@Slf4j
@RequiredArgsConstructor
public class MailAppealController {
private final MailAppealService mailAppealService;
}

44
mailbox-lan/src/main/java/com/biutag/lan/domain/MailAppeal.java

@ -0,0 +1,44 @@
package com.biutag.lan.domain;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Accessors(chain = true)
@Setter
@Getter
public class MailAppeal {
private Integer id;
/**
* 邮件id
*/
private String mailId;
/**
* 三级机构id
*/
private String threeDept;
/**
* 二级机构id
*/
private String secondDept;
/**
* 一级机构id
*/
private String firstDept;
/**
* 申诉理由
*/
private String appealReason;
/**
* 驳回理由
*/
private String overruleReason;
/**
* 附件
*/
private String attachments;
/**
* 申诉状态
*/
private String appealStatus;
}

8
mailbox-lan/src/main/java/com/biutag/lan/mapper/MailAppealMapper.java

@ -0,0 +1,8 @@
package com.biutag.lan.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.lan.domain.MailAppeal;
import org.apache.ibatis.annotations.Mapper;
public interface MailAppealMapper extends BaseMapper<MailAppeal> {
}

45
mailbox-lan/src/main/java/com/biutag/lan/service/MailAppealService.java

@ -0,0 +1,45 @@
package com.biutag.lan.service;
import com.biutag.core.AjaxResult;
import com.biutag.lan.domain.MailAppeal;
import org.springframework.stereotype.Service;
@Service
public class MailAppealService {
/**
* 发起申请
* @param appeal
* @return
*/
public AjaxResult<Void> launchAppeal(MailAppeal appeal) {
return null;
}
/**
* 获取申请详情
* @param id
* @return
*/
public AjaxResult<MailAppeal> getAppeal(String id) {
return null;
}
/**
* 驳回申请
* @param id
* @param overruleReason
* @return
*/
public AjaxResult<Void> overruleAppeal(String id, String overruleReason) {
return null;
}
/**
* 通过申请
* @param id
* @return
*/
public AjaxResult<Void> approved(String id) {
return null;
}
}
Loading…
Cancel
Save