优化代码

pull/59/head
awenes 1 year ago
parent 40e69d69ea
commit 834cc3cc26

@ -129,7 +129,7 @@ public interface AppConverter {
appGetResult.setClientId(entity.getClientId());
appGetResult.setClientSecret(entity.getClientSecret());
appGetResult.setType(entity.getType());
appGetResult.setGroupIds(groupIds);
appGetResult.setGroupIds(groupIds.stream().map(String::valueOf).toList());
//图标未配置,所以先从模版中拿
if (StringUtils.isBlank(entity.getIcon())) {
ApplicationService applicationService = getApplicationServiceLoader()

@ -24,6 +24,9 @@ import java.util.List;
import cn.topiam.employee.common.enums.app.AppProtocol;
import cn.topiam.employee.common.enums.app.AppType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.v3.oas.annotations.Parameter;
@ -110,5 +113,5 @@ public class AppGetResult implements Serializable {
* ID
*/
@Parameter(description = "应用组ID集合")
private List<Long> groupIds;
private List<String> groupIds;
}

Loading…
Cancel
Save