qinchulong
2025-03-29 039a4a5433e7f80adc88b491b549e5d9486e4f9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Text;
 
namespace WIDESEA_Core.ObjectActionValidator
{
    public class ObjectModelValidatorState
    {
        public ObjectModelValidatorState()
        {
            this.Status = true;
        }
 
        public bool Status { get; set; }
        public bool HasModelContent { get; set; }
        public string Code { get; set; }
        public string Message { get; set; }
    }
    public class ObjectValidatorResult
    {
        public ObjectValidatorResult()
        {
 
        }
        public ObjectValidatorResult(bool status)
        {
            this.Status = status;
        }
        public ObjectValidatorResult OK(string message)
        {
            this.Status = true;
            this.Message = message;
            return this;
        }
        public ObjectValidatorResult Error(string message)
        {
            this.Status = false;
            this.Message = message;
            return this;
        }
        public bool Status { get; set; }
        public string Message { get; set; }
    }
}