| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.ResultCodeMsg; |
| | | import com.dy.pipIrrGlobal.pojoBa.BaUser; |
| | | import com.dy.pipIrrGlobal.util.DistrictLevel; |
| | | import com.dy.pipIrrGlobal.util.Org; |
| | | import com.mysql.cj.util.StringUtils; |
| | | import io.swagger.v3.oas.annotations.Hidden; |
| | |
| | | import jakarta.validation.Valid; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | //import org.springframework.cache.CacheManager; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.UUID; |
| | | |
| | | //import org.springframework.cache.CacheManager; |
| | | |
| | | /** |
| | | * 注解Tag 在API中显示: Tag 注解, 给整个接口起了个名字与描述" |
| | |
| | | @GetMapping(path = "loginUserId") |
| | | public Long loginUserId(String token){ |
| | | BaUser userPo = this.sv.getByUuid(token) ; |
| | | return userPo == null ? null : userPo.id ; |
| | | return userPo == null ? null : userPo.userId ; |
| | | } |
| | | /** |
| | | * 此方法供子模块系统调用,所以不公开在API接口中 |
| | |
| | | BaUser userPo = this.sv.getByUuid(token) ; |
| | | CurUserVo vo = new CurUserVo(); |
| | | if(userPo != null){ |
| | | vo.id = userPo.id ; |
| | | vo.name = userPo.name ; |
| | | vo.id = userPo.userId ; |
| | | vo.name = userPo.userName; |
| | | } |
| | | return vo ; |
| | | } |