package com.fishingmate.facade.model;

import com.fishingmate.facade.common.BaseRequest;
import com.fishingmate.facade.enums.FishingMapEnum;
import com.fishingmate.facade.enums.FishingTypeEnum;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 创建渔情
 * Created by Administrator on 2017/7/9/009.
 */
public class CreateFishingMapReq extends BaseRequest {

    /**
     * 用户编号
     */
    @Min(value = 1, message = "无效的用户编号")
    private int userId;

    /**
     * 纬度
     */
    private double latitude;

    /**
     * 经度
     */
    private double longitude;

    /**
     * 渔情类型 ：0 - 放竿，1 - 渔货， 2 - 空军
     */
    @NotNull(message = "无效的渔情类型")
    private FishingMapEnum fishingMapType;

    /**
     * 垂钓方式
     */
    @NotNull(message = "无效的垂钓方式")
    private FishingTypeEnum fishingType;

    /**
     * 描述
     */
    private String desc;

    public int getUserId() {
        return userId;
    }

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

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public FishingMapEnum getFishingMapType() {
        return fishingMapType;
    }

    public void setFishingMapType(FishingMapEnum fishingMapType) {
        this.fishingMapType = fishingMapType;
    }

    public FishingTypeEnum getFishingType() {
        return fishingType;
    }

    public void setFishingType(FishingTypeEnum fishingType) {
        this.fishingType = fishingType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}

@@ -747,16 +747,52 @@
   * %E5%9E%82%E9%92%93%E6%96%B9%E5%BC%8F
+%EF%BC%9A0 - %E4%BC%A0%E7%BB%9F%E9%92%93%EF%BC%8C1 - %E5%8F%B0%E9%92%93%EF%BC%8C2 - %E6%B5%B7%E7%AB%BF%EF%BC%8C3 - %E7%AD%8F%E9%92%93%EF%BC%8C4 - %E8%B7%AF%E4%BA%9A
 %0A     */

add FishingType Enum