forked from rongchao/epmet-cloud-rizhao
3 changed files with 84 additions and 0 deletions
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @ClassName UserEnterGridResultDTO |
||||
|
* @Author wangc |
||||
|
* @date 2020.03.30 10:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class UserEnterGridResultDTO implements Serializable{ |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
private String currentCustomerId; |
||||
|
|
||||
|
private String currentGridId; |
||||
|
|
||||
|
private String currentGridName; |
||||
|
|
||||
|
private String nickname; |
||||
|
|
||||
|
private String userHeadPhoto; |
||||
|
|
||||
|
private List<String> userRoleList; |
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @ClassName UserEnterGridFormDTO |
||||
|
* @Author wangc |
||||
|
* @date 2020.03.30 10:09 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class UserEnterGridFormDTO implements Serializable{ |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
private String customerId; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.annotation.LoginUser; |
||||
|
import com.epmet.commons.tools.security.dto.TokenDto; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.dto.UserEnterGridResultDTO; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* @Description 用户引导Controller |
||||
|
* @ClassName UserGuideController |
||||
|
* @Author wangc |
||||
|
* @date 2020.03.30 09:34 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("user") |
||||
|
public class UserGuideController { |
||||
|
|
||||
|
|
||||
|
|
||||
|
@PostMapping("entergrid") |
||||
|
Result<UserEnterGridResultDTO> enterGrid(@LoginUser TokenDto token, @RequestBody UserEnterGridResultDTO userEnterGridResultDTO){ |
||||
|
|
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue