首页 > 其他 > 详细

go-admin开发小技巧

时间:2021-04-10 00:24:25      阅读:34      评论:0      收藏:0      [点我收藏+]

搜索条件参考下面的文件

https://github.com/go-admin-team/go-admin-core/blob/master/tools/search/query_test.go

type ApplicationQuery struct {
	Id       string    `search:"type:icontains;column:id;table:receipt" form:"id"`
	Domain   string    `search:"type:icontains;column:domain;table:receipt" form:"domain"`
	Version  string    `search:"type:exact;column:version;table:receipt" form:"version"`
	Status   []int     `search:"type:in;column:status;table:receipt" form:"status"`
	Start    time.Time `search:"type:gte;column:created_at;table:receipt" form:"start"`
	End      time.Time `search:"type:lte;column:created_at;table:receipt" form:"end"`
	TestJoin `search:"type:left;on:id:receipt_id;table:receipt_goods;join:receipts"`
	NotNeed  string `search:"-"`
	ApplicationOrder
}

go-admin开发小技巧

原文:https://www.cnblogs.com/haima/p/14637798.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!