Commit e1b02636 authored by 董建华's avatar 董建华

调整返回参数

parent d269e486
......@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
......@@ -60,16 +61,15 @@ public class AppletController {
appletParamEntry.getUtmSource(), userId);
return JsonResult
.buildSuccessResultGeneric(
ImmutableMap.of("userId", userId,
"user", loginVo));
.buildSuccessResultGeneric(loginVo);
}
/**
* @return
*/
@PostMapping("/login")
public JsonResult login(String appName, String openId, String utmSource) {
@Validated
public JsonResult login(@NotNull String appName, @NotNull String openId, String utmSource) {
if (!appNames.contains(appName)) {
throw new DataException("appName不合法");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment