linzhijie
2021-04-12 c632636e2f5b4188b430f5efc9d9f68c8dbe3d6d
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
package com.ots.project.exam.restcontroller;
import com.ots.project.exam.dto.ParamsInfo;
import com.ots.project.exam.dto.RestResponse;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
 
@RestController
@RequestMapping(value = "/remote/member")
public interface MemberController {
    
    @RequestMapping(value = "/param/{token}/{lang}", method = RequestMethod.GET)
    RestResponse getdemographyParam(@PathVariable String token, @PathVariable String lang);
    
    @RequestMapping(value = "/paramInfo/{token}", method = RequestMethod.GET)
    RestResponse queryDemographyParamInfo(@PathVariable String token);
    
    @RequestMapping(value = "/save/{token}/{langType}", method = RequestMethod.POST)
    RestResponse saveDemographyParamInfo(@RequestBody @Valid List<ParamsInfo> infos, @PathVariable String token, @PathVariable String langType);
    
    @RequestMapping(value = "/auth/{token}", method = RequestMethod.GET)
    RestResponse memberAuth(@PathVariable String token);
    
    @RequestMapping(value = "/langList/{token}/{reportTemplateId}", method = RequestMethod.GET)
    RestResponse queryLangList(@PathVariable String token, @PathVariable String reportTemplateId);
}