29 lines
662 B
C#
29 lines
662 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace model.crmodel
|
|
{
|
|
public class retMsg
|
|
{
|
|
public bool result { get; set; }
|
|
public int retcode { get; set; }
|
|
public string retmsg { get; set; }
|
|
public void SetFail(string msg, int code)
|
|
{
|
|
this.result = false;
|
|
this.retcode = code;
|
|
this.retmsg = msg;
|
|
}
|
|
|
|
public void SetResult(bool success, int code, string msg)
|
|
{
|
|
this.result = success;
|
|
this.retcode = code;
|
|
this.retmsg = msg;
|
|
}
|
|
}
|
|
}
|