修复 #5903 ,完善在微服务的sas认证

pull/5934/head
EightMonth 2024-02-21 16:39:25 +08:00
parent 411a73c1bf
commit b650d512b3
3 changed files with 33 additions and 1 deletions

View File

@ -737,4 +737,16 @@ public interface ISysBaseAPI extends CommonAPI {
@RequestParam(value = "fields", required = false) String[] fields @RequestParam(value = "fields", required = false) String[] fields
); );
@GetMapping("/sys/api/getUserByPhone")
public LoginUser getUserByPhone(@RequestParam("phone") String phone);
@GetMapping("/sys/api/queryAllDictItems")
Map<String,List<DictModel>> queryAllDictItems();
@GetMapping("/sys/api/queryUserDeparts")
List<SysDepartModel> queryUserDeparts(@RequestParam("userId") String userId);
@PostMapping("/sys/api/updateUserDepart")
void updateUserDepart(@RequestParam("username") String username,@RequestParam("orgCode") String orgCode,@RequestParam("loginTenantId") Integer loginTenantId);
} }

View File

@ -897,4 +897,24 @@ public class SystemApiController {
return sysBaseApi.dictTableWhiteListCheckByDict(tableOrDictCode, fields); return sysBaseApi.dictTableWhiteListCheckByDict(tableOrDictCode, fields);
} }
@GetMapping("/sys/api/getUserByPhone")
public LoginUser getUserByPhone(String phone) {
return sysBaseApi.getUserByPhone(phone);
}
@GetMapping("/sys/api/queryAllDictItems")
public Map<String,List<DictModel>> queryAllDictItems() {
return sysBaseApi.queryAllDictItems();
}
@GetMapping("/sys/api/queryUserDeparts")
public List<SysDepartModel> queryUserDeparts(@RequestParam("userId") String userId) {
return sysBaseApi.queryUserDeparts(userId);
}
@PostMapping("/sys/api/updateUserDepart")
public void updateUserDepart(@RequestParam("username") String username,@RequestParam("orgCode") String orgCode,@RequestParam("loginTenantId") Integer loginTenantId) {
sysBaseApi.updateUserDepart(username, orgCode, loginTenantId);
}
} }

View File

@ -61,7 +61,7 @@ public class SysUser implements Serializable {
/** /**
* md5 * md5
*/ */
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY) @JsonProperty(access = JsonProperty.Access.READ_WRITE)
private String salt; private String salt;
/** /**