|
@@ -56,20 +56,20 @@ func (p *PermissionOptionBase) MergeObject(jsonString string) error { |
|
@@ -56,20 +56,20 @@ func (p *PermissionOptionBase) MergeObject(jsonString string) error { |
56
|
return nil
|
56
|
return nil
|
57
|
}
|
57
|
}
|
58
|
|
58
|
|
59
|
-// //StringUnmarshal PermissionOptionBase 接口实现
|
|
|
60
|
-// func (p *PermissionOptionBase) StringUnmarshal(s string) error {
|
|
|
61
|
-// err := json.Unmarshal([]byte(s), p)
|
|
|
62
|
-// return err
|
|
|
63
|
-// }
|
|
|
64
|
-
|
|
|
65
|
-// //ObjectMarshal PermissionOptionBase 接口实现
|
|
|
66
|
-// func (p *PermissionOptionBase) ObjectMarshal() string {
|
|
|
67
|
-// bt, err := json.Marshal(p)
|
|
|
68
|
-// if err != nil {
|
|
|
69
|
-// return ""
|
|
|
70
|
-// }
|
|
|
71
|
-// return string(bt)
|
|
|
72
|
-// }
|
59
|
+//StringUnmarshal PermissionOptionBase 接口实现
|
|
|
60
|
+func (p *PermissionOptionBase) StringUnmarshal(s string) error {
|
|
|
61
|
+ err := json.Unmarshal([]byte(s), p)
|
|
|
62
|
+ return err
|
|
|
63
|
+}
|
|
|
64
|
+
|
|
|
65
|
+//ObjectMarshal PermissionOptionBase 接口实现
|
|
|
66
|
+func (p *PermissionOptionBase) ObjectMarshal() string {
|
|
|
67
|
+ bt, err := json.Marshal(p)
|
|
|
68
|
+ if err != nil {
|
|
|
69
|
+ return ""
|
|
|
70
|
+ }
|
|
|
71
|
+ return string(bt)
|
|
|
72
|
+}
|
73
|
|
73
|
|
74
|
/*
|
74
|
/*
|
75
|
机会管理模块
|
75
|
机会管理模块
|
|
@@ -233,17 +233,17 @@ func (p *OptionOpportunity) ValidCloseChance() bool { |
|
@@ -233,17 +233,17 @@ func (p *OptionOpportunity) ValidCloseChance() bool { |
233
|
return false
|
233
|
return false
|
234
|
}
|
234
|
}
|
235
|
|
235
|
|
236
|
-// //StringUnmarshal PermissionOptionBase 接口实现
|
|
|
237
|
-// func (p *OptionOpportunity) StringUnmarshal(s string) error {
|
|
|
238
|
-// err := json.Unmarshal([]byte(s), p)
|
|
|
239
|
-// return err
|
|
|
240
|
-// }
|
|
|
241
|
-
|
|
|
242
|
-// //ObjectMarshal PermissionOptionBase 接口实现
|
|
|
243
|
-// func (p *OptionOpportunity) ObjectMarshal() string {
|
|
|
244
|
-// bt, err := json.Marshal(p)
|
|
|
245
|
-// if err != nil {
|
|
|
246
|
-// return ""
|
|
|
247
|
-// }
|
|
|
248
|
-// return string(bt)
|
|
|
249
|
-// } |
236
|
+//StringUnmarshal PermissionOptionBase 接口实现
|
|
|
237
|
+func (p *OptionOpportunity) StringUnmarshal(s string) error {
|
|
|
238
|
+ err := json.Unmarshal([]byte(s), p)
|
|
|
239
|
+ return err
|
|
|
240
|
+}
|
|
|
241
|
+
|
|
|
242
|
+//ObjectMarshal PermissionOptionBase 接口实现
|
|
|
243
|
+func (p *OptionOpportunity) ObjectMarshal() string {
|
|
|
244
|
+ bt, err := json.Marshal(p)
|
|
|
245
|
+ if err != nil {
|
|
|
246
|
+ return ""
|
|
|
247
|
+ }
|
|
|
248
|
+ return string(bt)
|
|
|
249
|
+} |