From 24ab95706efacc297416767154d4f66e7e9e1773 Mon Sep 17 00:00:00 2001 From: public_host Date: Tue, 20 Apr 2021 16:20:23 +0800 Subject: [PATCH] fix --- hasaki-gen-crud/hasaki-gen-crud.js | 4 ++-- test.go | 17 ----------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 1740941..dd70658 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -14,8 +14,8 @@ try { // }).catch(error => { // console.log("fix:", error); // }) - vscode.commands.executeCommand('editor.action.quickFix', vscode.Uri.file(path), new vscode.Range((new vscode.Position(0, 0)), (new vscode.Position(100, 0)))); - // vscode.window.createTerminal("go:fix", "cmd.exe", ["/c", `gopls fix -a -w ${path}`]) + // vscode.commands.executeCommand('editor.action.quickFix', vscode.Uri.file(path), new vscode.Range((new vscode.Position(0, 0)), (new vscode.Position(100, 0)))); + vscode.window.createTerminal("go:fix", "cmd.exe", ["/c", `gopls fix -a -w ${path}`]) } diff --git a/test.go b/test.go index 8db4983..f503ded 100644 --- a/test.go +++ b/test.go @@ -3,27 +3,10 @@ */ package main -import ( - "git.ouxuan.net/hasaki-service/hasaki-sdk/hskdb" - "xorm.io/xorm" -) - type MyTestr struct { Id int } -//wherePrimaryKey -func (myTestr *MyTestr) wherePrimaryKey() (q interface{}, args []interface{}) { - //todo 根据需求修改 - return "`id`=?", []interface{}{ - myTestr.Id, - } -} - -func (myTestr *MyTestr) getXorm() *xorm.Engine { - return hskdb.GetXormAuto() -} - type MyTestr2 struct { Id int }