// Path: dingding-app-server-web/src/main/java/com/mocoder/dingding/web/util/BodyAlgorithmEnum.java
// public enum BodyAlgorithmEnum {
// 
//     BASE64("base64"),
//     DES("des")
//     ;
//     private String name;
// 
//     BodyAlgorithmEnum(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// }


import com.mocoder.dingding.web.util.BodyAlgorithmEnum;
import java.lang.annotation.*;
package com.mocoder.dingding.web.annotation;



/**
 * Created by yangshuai3 on 2016/2/1.
 */

@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ValidateBody {
    /**
     * @return 参数字段名，从request.getParameter获取
     */
    String value() default "body";

    /**
     * @return 对称加密算法
     * @see com.mocoder.dingding.web.util.BodyAlgorithmEnum
     */
// Path: dingding-app-server-web/src/main/java/com/mocoder/dingding/web/util/BodyAlgorithmEnum.java
// public enum BodyAlgorithmEnum {
// 
//     BASE64("base64"),
//     DES("des")
//     ;
//     private String name;
// 
//     BodyAlgorithmEnum(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// }


// Path: dingding-app-server-web/src/main/java/com/mocoder/dingding/web/annotation/ValidateBody.java
import com.mocoder.dingding.web.util.BodyAlgorithmEnum;
import java.lang.annotation.*;

package com.mocoder.dingding.web.annotation;



/**
 * Created by yangshuai3 on 2016/2/1.
 */

@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ValidateBody {
    /**
     * @return 参数字段名，从request.getParameter获取
     */
    String value() default "body";

    /**
     * @return 对称加密算法
     * @see com.mocoder.dingding.web.util.BodyAlgorithmEnum
     */
    BodyAlgorithmEnum[] algorithm() default {};