gao
2020-05-28 06ccd882e48b982cf29dfd3ff17066d261403324
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.xcong.excoin.utils;
 
/**
 * 接受参数 类型判断
 *
 * @author wzy
 * @date 2020-05-27
 **/
public class TypeJudgeUtils {
 
    /**
     * 委托类型 1开多 2开空 3平多 4平空
     *
     * @param type
     * @return
     */
    public static boolean entrustType(int type) {
        switch (type) {
            case 1:
            case 2:
            case 3:
            case 4:
                return true;
            default:
                return false;
        }
    }
}