Skip to content

Commit

Permalink
add special handling for CurrencyGreaterThan
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqizng committed Aug 10, 2023
1 parent bee2916 commit f5eff95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go_templates/query.vm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ type ${paramsType} struct {
// $str.formatDoc("$qpName ${str.uncapitalize($qp.doc)}", " // ")
#if ( $qp.arrayType == "string" )
$qpName []string `url:"$qp.propertyName,omitempty,comma"`
#elseif ( $qpName == "CurrencyGreaterThan")
$qpName *uint64 `url:"$qp.propertyName,omitempty"`
#else
$qpName #oapiToGo($qp, false) `url:"$qp.propertyName,omitempty"`
#end
Expand Down Expand Up @@ -114,7 +116,11 @@ func (s *$queryType) ${qpName}($qpName #queryParamType($qp, true)) *$queryType {
#elseif( $qp.algorandFormat == "base64" )
s.p.$qpFieldName = base64.StdEncoding.EncodeToString($qpName)
#elseif ( $qp.type == "integer" || $qp.type == "string" || $qp.type == "boolean" || $qp.arrayType )
s.p.$qpFieldName = $qpName
#if ( $qpFieldName == "CurrencyGreaterThan")
s.p.$qpFieldName = &$qpName
#else
s.p.$qpFieldName = $qpName
#end
#else
UNHANDLED TYPE
- ref: $!qp.refType
Expand Down

0 comments on commit f5eff95

Please sign in to comment.