15 changed files with 172 additions and 13 deletions
@ -0,0 +1,32 @@ |
|||
package com.elink.esua.epdc.async; |
|||
|
|||
import com.elink.esua.epdc.dto.form.PartyUserNewInfoFormDTO; |
|||
import com.elink.esua.epdc.feign.PartyGroupFeignClient; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.scheduling.annotation.Async; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @author songyunpeng |
|||
* @Description 党群模块 |
|||
* @create 2020-06-08 |
|||
*/ |
|||
@Component |
|||
public class PartyGroupTask { |
|||
|
|||
@Autowired |
|||
private PartyGroupFeignClient partyGroupFeignClient; |
|||
|
|||
|
|||
/** |
|||
* @Description 用户完善信息后更新党群群员信息 |
|||
* @Author songyunpeng |
|||
* @Date 2020/6/8 |
|||
* @Param [formDTO] |
|||
* @return void |
|||
**/ |
|||
@Async |
|||
public void updateInfo(PartyUserNewInfoFormDTO formDTO) { |
|||
partyGroupFeignClient.updateInfo(formDTO); |
|||
} |
|||
} |
|||
@ -0,0 +1,41 @@ |
|||
package com.elink.esua.epdc.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author songyunpeng |
|||
* @Description 完善党群群员表信息 |
|||
* @create 2020-06-08 |
|||
*/ |
|||
@Data |
|||
public class PartyUserNewInfoFormDTO implements Serializable { |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
@NotNull(message = "用户ID不能为空") |
|||
private String userId; |
|||
/** |
|||
* 用户昵称 |
|||
*/ |
|||
private String nickname; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String userAvatar; |
|||
|
|||
/** |
|||
* 手机 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 党员标识 |
|||
*/ |
|||
private String partyMember; |
|||
|
|||
} |
|||
Loading…
Reference in new issue