public_host 4 years ago
parent
commit
1b5e06628c
  1. 5
      hasaki-gen-crud/hasaki-gen-crud.js
  2. 17
      test.go

5
hasaki-gen-crud/hasaki-gen-crud.js

@ -2,7 +2,6 @@
try {
function goplsfix(path) {
axios.post(url, {
path: path,
}).then(res => {
@ -11,10 +10,10 @@ try {
})
}
const url = vscode.workspace.getConfiguration().get('go-vscode-config.url');
console.log("start")
const vscode = require("vscode")
const vscode = require("vscode");
const url = vscode.workspace.getConfiguration().get('go-vscode-config.url');
const fs = require("fs")
const path = require('path');
const cp = require("child_process");

17
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
}

Loading…
Cancel
Save