You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
665 B

2 years ago
  1. namespace EasyBL.WebApi.Message
  2. {
  3. public class ErrorResponseMessage : ResponseMessage
  4. {
  5. public ErrorResponseMessage(string i_sMsg, RequestMessage i_crm = null) : base(null)
  6. {
  7. if (i_crm.LANG == "zh")
  8. {
  9. i_sMsg = ChineseStringUtility.ToSimplified(i_sMsg);
  10. }
  11. base.RESULT = ResponseResult.RR_FALSE;
  12. base.STATUSCODE = 201;
  13. base.MSG = i_sMsg;
  14. if (i_crm != null)
  15. {
  16. base.PROJECT = i_crm.PROJECT;
  17. base.PROJECTVER = i_crm.PROJECTVER;
  18. base.TYPE = i_crm.TYPE;
  19. }
  20. }
  21. }
  22. }