File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ type predicateView struct {
206206 SimilarityID string `format:"name:Similarity ID"`
207207 Severity string
208208 State string
209+ StateID string
209210 Comment string
210211 CreatedBy string
211212 CreatedAt time.Time `format:"name:Created at;time:01-02-06 15:04:05"`
@@ -236,6 +237,7 @@ func toSinglePredicateView(predicate *wrappers.Predicate) predicateView {
236237 SimilarityID : predicate .SimilarityID ,
237238 Severity : predicate .Severity ,
238239 State : predicate .State ,
240+ StateID : predicate .StateID ,
239241 Comment : predicate .Comment ,
240242 CreatedBy : predicate .CreatedBy ,
241243 CreatedAt : predicate .CreatedAt ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ type BasePredicate struct {
1010 State string `json:"state"`
1111 Severity string `json:"severity"`
1212 Comment string `json:"comment"`
13+ StateID string `json:"StateId"`
1314}
1415
1516type PredicateRequest struct {
@@ -45,13 +46,10 @@ type CustomState struct {
4546 Type string `json:"type"`
4647}
4748
48-
49-
5049type CustomStatesWrapper interface {
5150 GetAllCustomStates (includeDeleted bool ) ([]CustomState , error )
5251}
5352
54-
5553type ResultsPredicatesWrapper interface {
5654 PredicateSeverityAndState (predicate * PredicateRequest , scanType string ) (* WebError , error )
5755 GetAllPredicatesForSimilarityID (
You can’t perform that action at this time.
0 commit comments