Blame view

src/main/java/com/example/demo/service/SNService.java 799 Bytes
9f87bede   岑健浩   SNManage init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  package com.example.demo.service;
  
  import com.example.demo.exception.SNRepetitiveException;
  
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import java.io.FileNotFoundException;
  import java.io.IOException;
  
  public interface SNService {
      /**
       *  新增SN
       * @param SN SN
       */
      void addSN(String SN) throws SNRepetitiveException, IOException;
  
      /**
       *  下载所有SN
       */
      void downloadSNFile(HttpServletRequest request, HttpServletResponse response) throws IOException;
  
      /**
       *  获取所有加密后的SN字符串
       * @return -
       */
      String getEncryptSNs() throws IOException;
  
      /**
       *  删除指定SN记录
       * @param SN SN
       */
      void deleteSN(String SN) throws Exception;
  
  }