// Path: mq-aliyun-consumer-spring-boot-starter/src/main/java/com/github/mq/consumer/models/Action.java
// public enum Action {
//     commit,
//     reconsume;
//     Action(){}
// }
// 
// Path: mq-aliyun-consumer-spring-boot-starter/src/main/java/com/github/mq/consumer/models/Message.java
// public class Message extends com.aliyun.openservices.ons.api.Message {
// }
// 
// Path: mq-aliyun-example/src/main/java/com/mq/aliyun/example/model/Dish.java
// public class Dish {
//     private Long id;
//     private String name;
//     public Dish(){}
// 
//     public Dish(Long id,String name){
//         this.id = id;
//         this.name = name;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
// }


import com.github.mq.consumer.models.Action;
import com.github.mq.consumer.models.Message;
import com.github.mq.consumer.models.Reconsume;
import com.mq.aliyun.example.model.Dish;
import com.mq.aliyun.example.model.JackJson;
package com.mq.aliyun.example.consumers;


/**
 * Created by wangziqing on 17/7/25.
 */
@Reconsume(5)
public class TestConsumer {
    @Reconsume(3)
    public Action dishAdd(Dish dish){
        //do some thine
        return Action.commit;
    }


// Path: mq-aliyun-consumer-spring-boot-starter/src/main/java/com/github/mq/consumer/models/Action.java
// public enum Action {
//     commit,
//     reconsume;
//     Action(){}
// }
// 
// Path: mq-aliyun-consumer-spring-boot-starter/src/main/java/com/github/mq/consumer/models/Message.java
// public class Message extends com.aliyun.openservices.ons.api.Message {
// }
// 
// Path: mq-aliyun-example/src/main/java/com/mq/aliyun/example/model/Dish.java
// public class Dish {
//     private Long id;
//     private String name;
//     public Dish(){}
// 
//     public Dish(Long id,String name){
//         this.id = id;
//         this.name = name;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
// }


// Path: mq-aliyun-example/src/main/java/com/mq/aliyun/example/consumers/TestConsumer.java
import com.github.mq.consumer.models.Action;
import com.github.mq.consumer.models.Message;
import com.github.mq.consumer.models.Reconsume;
import com.mq.aliyun.example.model.Dish;
import com.mq.aliyun.example.model.JackJson;

package com.mq.aliyun.example.consumers;


/**
 * Created by wangziqing on 17/7/25.
 */
@Reconsume(5)
public class TestConsumer {
    @Reconsume(3)
    public Action dishAdd(Dish dish){
        //do some thine
        return Action.commit;
    }


    public Action dishDel(Long dishId, Message message){