...
|
...
|
@@ -56,20 +56,20 @@ func (p *PermissionOptionBase) MergeObject(jsonString string) error { |
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// //StringUnmarshal PermissionOptionBase 接口实现
|
|
|
// func (p *PermissionOptionBase) StringUnmarshal(s string) error {
|
|
|
// err := json.Unmarshal([]byte(s), p)
|
|
|
// return err
|
|
|
// }
|
|
|
|
|
|
// //ObjectMarshal PermissionOptionBase 接口实现
|
|
|
// func (p *PermissionOptionBase) ObjectMarshal() string {
|
|
|
// bt, err := json.Marshal(p)
|
|
|
// if err != nil {
|
|
|
// return ""
|
|
|
// }
|
|
|
// return string(bt)
|
|
|
// }
|
|
|
//StringUnmarshal PermissionOptionBase 接口实现
|
|
|
func (p *PermissionOptionBase) StringUnmarshal(s string) error {
|
|
|
err := json.Unmarshal([]byte(s), p)
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
//ObjectMarshal PermissionOptionBase 接口实现
|
|
|
func (p *PermissionOptionBase) ObjectMarshal() string {
|
|
|
bt, err := json.Marshal(p)
|
|
|
if err != nil {
|
|
|
return ""
|
|
|
}
|
|
|
return string(bt)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
机会管理模块
|
...
|
...
|
@@ -233,17 +233,17 @@ func (p *OptionOpportunity) ValidCloseChance() bool { |
|
|
return false
|
|
|
}
|
|
|
|
|
|
// //StringUnmarshal PermissionOptionBase 接口实现
|
|
|
// func (p *OptionOpportunity) StringUnmarshal(s string) error {
|
|
|
// err := json.Unmarshal([]byte(s), p)
|
|
|
// return err
|
|
|
// }
|
|
|
|
|
|
// //ObjectMarshal PermissionOptionBase 接口实现
|
|
|
// func (p *OptionOpportunity) ObjectMarshal() string {
|
|
|
// bt, err := json.Marshal(p)
|
|
|
// if err != nil {
|
|
|
// return ""
|
|
|
// }
|
|
|
// return string(bt)
|
|
|
// } |
|
|
//StringUnmarshal PermissionOptionBase 接口实现
|
|
|
func (p *OptionOpportunity) StringUnmarshal(s string) error {
|
|
|
err := json.Unmarshal([]byte(s), p)
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
//ObjectMarshal PermissionOptionBase 接口实现
|
|
|
func (p *OptionOpportunity) ObjectMarshal() string {
|
|
|
bt, err := json.Marshal(p)
|
|
|
if err != nil {
|
|
|
return ""
|
|
|
}
|
|
|
return string(bt)
|
|
|
} |
...
|
...
|
|