Skip to content

Commit

Permalink
adapt cola3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fulan.zjf committed Jun 30, 2020
1 parent 9fb73ff commit d5ef8de
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 161 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.alibaba.craftsman.domain.metrics;

import org.apache.commons.lang3.StringUtils;

public enum MainMetricType {
APP_QUALITY("app-quality","应用质量"),
TECH_INFLUENCE("tech-influence","技术影响力"),
Expand All @@ -25,7 +23,7 @@ public String getMetricName() {
}

public static MainMetricType of(String metricCode){
if(StringUtils.isBlank(metricCode)){
if(metricCode == null){
return null;
}
for (MainMetricType metricMainType : MainMetricType.values()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package com.alibaba.craftsman.tunnel.database.dataobject;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class MetricDO{
private String id;
/**
Expand All @@ -23,4 +19,44 @@ public class MetricDO{
* 度量条目
*/
private String metricItem;

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getUserId() {
return userId;
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getMainMetric() {
return mainMetric;
}

public void setMainMetric(String mainMetric) {
this.mainMetric = mainMetric;
}

public String getSubMetric() {
return subMetric;
}

public void setSubMetric(String subMetric) {
this.subMetric = subMetric;
}

public String getMetricItem() {
return metricItem;
}

public void setMetricItem(String metricItem) {
this.metricItem = metricItem;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.alibaba.craftsman.tunnel.database.dataobject;

import lombok.Data;
import lombok.ToString;


import java.util.Date;

Expand All @@ -11,8 +10,7 @@
* @author Frank Zhang
* @date 2019-02-27 5:00 PM
*/
@Data
@ToString

public class UserProfileDO {

/**
Expand Down Expand Up @@ -70,4 +68,91 @@ public class UserProfileDO {
*/
private double checkinCodeQuantity;

public String getUserId() {
return userId;
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getUserName() {
return userName;
}

public void setUserName(String userName) {
this.userName = userName;
}

public String getDep() {
return dep;
}

public void setDep(String dep) {
this.dep = dep;
}

public String getRole() {
return role;
}

public void setRole(String role) {
this.role = role;
}

public String getIsManager() {
return isManager;
}

public void setIsManager(String isManager) {
this.isManager = isManager;
}

public double getTotalScore() {
return totalScore;
}

public void setTotalScore(double totalScore) {
this.totalScore = totalScore;
}

public double getAppQualityScore() {
return appQualityScore;
}

public void setAppQualityScore(double appQualityScore) {
this.appQualityScore = appQualityScore;
}

public double getTechInfluenceScore() {
return techInfluenceScore;
}

public void setTechInfluenceScore(double techInfluenceScore) {
this.techInfluenceScore = techInfluenceScore;
}

public double getTechContributionScore() {
return techContributionScore;
}

public void setTechContributionScore(double techContributionScore) {
this.techContributionScore = techContributionScore;
}

public double getDevQualityScore() {
return devQualityScore;
}

public void setDevQualityScore(double devQualityScore) {
this.devQualityScore = devQualityScore;
}

public double getCheckinCodeQuantity() {
return checkinCodeQuantity;
}

public void setCheckinCodeQuantity(double checkinCodeQuantity) {
this.checkinCodeQuantity = checkinCodeQuantity;
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
package com.alibaba.craftsman.tunnel.rpc.dataobject;

import lombok.Data;

@Data
public class AppMetricDO {
private String appName;//应用名称
private int cyclomaticComplexityCount;//圈复杂度超标的数目
private int duplicatedMethodCount;//重复代码的数目
private int longMethodCount;//长方法的数目
private int blockedCodeConductCount;//不符合编码标准的数目

public String getAppName() {
return appName;
}

public void setAppName(String appName) {
this.appName = appName;
}

public int getCyclomaticComplexityCount() {
return cyclomaticComplexityCount;
}

public void setCyclomaticComplexityCount(int cyclomaticComplexityCount) {
this.cyclomaticComplexityCount = cyclomaticComplexityCount;
}

public int getDuplicatedMethodCount() {
return duplicatedMethodCount;
}

public void setDuplicatedMethodCount(int duplicatedMethodCount) {
this.duplicatedMethodCount = duplicatedMethodCount;
}

public int getLongMethodCount() {
return longMethodCount;
}

public void setLongMethodCount(int longMethodCount) {
this.longMethodCount = longMethodCount;
}

public int getBlockedCodeConductCount() {
return blockedCodeConductCount;
}

public void setBlockedCodeConductCount(int blockedCodeConductCount) {
this.blockedCodeConductCount = blockedCodeConductCount;
}
}
Loading

0 comments on commit d5ef8de

Please sign in to comment.