refactor: complete ActionOptions unification and pointer type optimization

This commit is contained in:
lilong.129
2025-05-27 13:34:12 +08:00
parent 7fb966b7ba
commit 404865ba6b
17 changed files with 838 additions and 1188 deletions

View File

@@ -39,7 +39,7 @@ func (r *Router) backspaceHandler(c *gin.Context) {
return
}
count := req.GetCount()
count := req.Count
if count == 0 {
count = 20
}
@@ -67,7 +67,7 @@ func (r *Router) keycodeHandler(c *gin.Context) {
}
// TODO FIXME
err = driver.IDriver.(*uixt.ADBDriver).
PressKeyCode(uixt.KeyCode(req.GetKeycode()), uixt.KMEmpty)
PressKeyCode(uixt.KeyCode(req.Keycode), uixt.KMEmpty)
if err != nil {
RenderError(c, err)
return