package cn.axzo.msg.center.api.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiachao
 * @date 2021/6/18 招工找活发送推送信息相关参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PJobsNotifyReq {


  /**
   * 路由参数
   */
  private String params;

  /**
   * 消息类型  MessageTypeConstant
   */
  private Integer msgType;

  /**
   * 接收者workerId
   */
  private Long workerId;

  /**
   * 提示信息 对应MessageTypeConstant中type对应的填充后的文字信息
   */
  private String content;

  public static class MessageTypeConstant {

    /**
     * 班组长录用工人
     */
    public static final int CM_LEADER_EMPLOYED =  50001;
    public static final String  CM_LEADER_EMPLOYED_MSG="您已录用工人“%s”，请提前告知工人入岗所需材料以及相关注意事项~";
    /**
     * 产业工人被录用
     */
    public static final int CM_WORKER_EMPLOYED = 50002;
    public static final String CM_WORKER_EMPLOYED_MSG = "您已被班组长“%s”录用，请知晓~";


    /**
     * 工人购买通知
     */
    public static final int CM_LEADER_BUY_NOTIFY = 50003;
    public static final String CM_LEADER_BUY_NOTIFY_MSG = "您购买的“%s”已到账，请注意查看~";
    /**
     * 班组长购买通知
     */
    public static final int CM_WORKER_BUY_NOTIFY = 50016;
    public static final String CM_WORKER_BUY_NOTIFY_MSG = "您购买的“%s”已到账，请注意查看~";

    /**
     * 班组信息审核通过
     */
    public static final int CM_TEAM_INFO_AUDIT_PASS = 50004;
    public static final String CM_INFO_AUDIT_PASS_MSG = "您提交的班组信息审核成功，请知晓~";
    /**
     * 班组信息审核不通过
     */
    public static final int CM_TEAM_INFO_AUDIT_NO_PASS = 50005;
    public static final String CM_TEAM_INFO_AUDIT_NO_PASS_MSG = "您提交的班组信息审核失败，请修改后重新提交~\n\n审核失败原因：%s";
    /**
     * 班组项目经验审核通过
     */
    public static final int CM_TEAM_EXPERIENCE_AUDIT_PASS = 50006;
    public static final String CM_TEAM_EXPERIENCE_AUDIT_PASS_MSG = "您提交的项目经验“%s”审核成功，请知晓~";

    /**
     * 班组项目经验审核不通过
     */
    public static final int CM_TEAM_EXPERIENCE_AUDIT_NO_PASS = 50007;
    public static final String  CM_TEAM_EXPERIENCE_AUDIT_NO_PASS_MSG = "您提交的项目经验“%s”审核失败，请修改后重新提交~\n\n审核失败原因：%s";

    /**
     * 招聘信息审核通过
     */
    public static final int CM_JOBS_AUDIT_PASS = 50008;
    public static final String CM_JOBS_AUDIT_PASS_MSG = "您提交的“%s”招聘信息审核成功，请注意接听工友来电~";
    /**
     * 招聘信息审核不通过
     */
    public static final int CM_JOBS_AUDIT_NO_PASS = 50009;
    public static final String CM_JOBS_AUDIT_NO_PASS_MSG = "您提交的“%s”招聘信息审核失败，请修改后重新提交~\n\n审核失败原因：%s";

    /**
     * 工人个人信息审核通知 通过
     */
    public static final int CM_WORKER_INFO_AUDIT_PASS = 50010;
    public static final String CM_WORKER_INFO_AUDIT_PASS_MSG = "您提交的个人信息审核成功，请知晓~";
    /**
     * 工人个人信息审核通知 不通过
     */
    public static final int CM_WORKER_INFO_AUDIT_NO_PASS = 50011;
    public static final String CM_WORKER_INFO_AUDIT_NO_PASS_MSG = "您提交的个人信息审核失败，请修改后重新提交~\n\n审核失败原因：%s";

    /**
     * 工人项目经验审核通过
     */
    public static final int CM_WORKER_EXPERIENCE_AUDIT_PASS  = 50012;
    public static final String CM_WORKER_EXPERIENCE_AUDIT_PASS_MSG  = "您提交的项目经验“%s”审核成功，请知晓~";
    /**
     * 工人项目经验审核不通过
     */
    public static final int CM_WORKER_EXPERIENCE_AUDIT_NO_PASS  = 50013;
    public static final String CM_WORKER_EXPERIENCE_AUDIT_NO_PASS_MSG  = "您提交的项目经验“%s”审核失败，请修改后重新提交~\n\n审核失败原因：%s";

    /**
     * 个人技能证书审核通过
     */
    public static final int CM_WORKER_CERTIFICATE_AUDIT_PASS  = 50014;
    public static final String CM_WORKER_CERTIFICATE_AUDIT_PASS_MSG  = "您提交的技能证书“%s”审核成功，请知晓~";

    /**
     * 个人技能证书审核不通过
     */
    public static final int CM_WORKER_CERTIFICATE_AUDIT_NO_PASS  = 50015;
    public static final String CM_WORKER_CERTIFICATE_AUDIT_NO_PASS_MSG  = "您提交的技能证书“%s”审核失败，请修改后重新提交~\n\n审核失败原因：%s";

    /**
     * 工人给你拨打了电话
     */
    public static final int CM_WORKER_CALL_TEL = 50017;
    public static final String CM_WORKER_CALL_TEL_MSG = "工人“%s”给您打了电话，请在app内回拨，点击进入~";


    /**
     * 班组长给你拨打了电话
     */
    public static final int CM_LEADER_CALL_TEL = 50018;
    public static final String CM_LEADER_CALL_TEL_MSG = "班组长“%s”给您打了电话，请在app内回拨，点击进入~";
  }
}