-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abbc255
commit 386b517
Showing
7 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
dashboard-domain-service/src/main/java/com/jd/logistics/cloud/data/domain/Function.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.jd.logistics.cloud.data.domain; | ||
|
||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Created by GIN on 2017/10/30. | ||
*/ | ||
@Data | ||
public class Function implements Serializable{ | ||
public enum FuncType { | ||
BOX(0), CHART(1), FREE(2); | ||
private int index; | ||
FuncType(int index) { | ||
this.index = index; | ||
} | ||
public static FuncType getFuncType(int index) { | ||
switch (index) { | ||
case 0: | ||
return FuncType.BOX; | ||
case 1: | ||
return FuncType.CHART; | ||
case 2: | ||
return FuncType.FREE; | ||
} | ||
return FuncType.BOX; | ||
} | ||
} | ||
private String funcName; | ||
private FuncType funcType; | ||
|
||
public Function(String funcName, FuncType funcType) { | ||
this.funcName = funcName; | ||
this.funcType = funcType; | ||
} | ||
|
||
public String getFuncName() { | ||
return funcName; | ||
} | ||
|
||
public void setFuncName(String funcName) { | ||
this.funcName = funcName; | ||
} | ||
|
||
public FuncType getFuncType() { | ||
return funcType; | ||
} | ||
|
||
public void setFuncType(FuncType funcType) { | ||
this.funcType = funcType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters