Add ops feedback reward grants

This commit is contained in:
2569718930@qq.com
2026-06-08 20:54:20 +08:00
parent 7d1bfea8da
commit 6273921005
9 changed files with 514 additions and 43 deletions
+5
View File
@@ -504,6 +504,11 @@ class GrantPointsRequest(BaseModel):
points: int = Field(..., gt=0, le=100000)
class FeedbackRewardRequest(BaseModel):
points: int = Field(..., gt=0, le=100000)
reason: str = Field(..., min_length=2, max_length=500)
def _sf(v) -> Optional[float]:
if v is None:
return None