lyb124553153
lyb124553153
https://github.com/ctran/annotate_models/blob/e075a21481ecfea6c7fc984c0978ff807332af62/lib/annotate/annotate_models.rb#L378-L382 ## Commands ``` str = "# Table name: foos\n" + "#\n" + "# id :bigint(8) not null, primary key\n" + "# test(测试) :decimal(, ) not null\n" column_pattern = /^#[\t...
在user.go里面给增加user写了一个日志 引入了 ``` import ( m "github.com/beego/admin/src/models" "github.com/astaxie/beego/logs" "encoding/json" ) ``` ``` func (this *UserController) AddUser() { log := logs.NewLogger(10000) log.SetLogger("file", `{"filename":"user.log"}`) u := m.User{} uinfo,_ := json.Marshal(u) if err...
usermodel里面的 Filter() 里面两个参数 “Role_Role_id” 和roleid 为什么可以这样写 ``` func GetUserByRoleId(roleid int64) (users []orm.Params, count int64) { o := orm.NewOrm() user := new(User) count, _ = o.QueryTable(user).Filter("Role__Role__Id", roleid).Values(&users) return users, count }...
*Be clear, concise and precise in your description of the problem. Open an issue with a descriptive title and a summary in grammatically correct, complete sentences.* *Use the template below...
befor chewy 7.2, I have some code like this ```ruby class MessagesIndex < Chewy::Index [Post, Form, TemplatePost].each do |klass| define_type klass do field :id, type: 'integer' field :title, type: 'string',...
The create aduits was special, We use it to show creator for the records, So when combine audits , We need to exclude combie create action.
allow keep create actions when combines data see #727