1
This commit is contained in:
parent
1945411d1a
commit
a8a8480a68
@ -21,5 +21,17 @@
|
|||||||
"api": ["xxx", "-xxx"],
|
"api": ["xxx", "-xxx"],
|
||||||
"ui": ["addannouncement", "editannouncement", "addaudit", "editaudit"]
|
"ui": ["addannouncement", "editannouncement", "addaudit", "editaudit"]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"account_address": "0x3dC8F7a8E6dB10a9dEE3b74C268520E9Bf4fb322",
|
||||||
|
"__doc__": "az",
|
||||||
|
"roles": [
|
||||||
|
"admin",
|
||||||
|
"customer_service"
|
||||||
|
],
|
||||||
|
"special": {
|
||||||
|
"api": ["xxx", "-xxx"],
|
||||||
|
"ui": ["addannouncement", "editannouncement", "addaudit", "editaudit"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -18,12 +18,12 @@ func (this *MailApi) ListMail(c *gin.Context) {
|
|||||||
var pageSize int32 = 100
|
var pageSize int32 = 100
|
||||||
var cursor int64 = 0
|
var cursor int64 = 0
|
||||||
orderBy := ""
|
orderBy := ""
|
||||||
sql := "SELECT * FROM t_mail"
|
sql := "SELECT * FROM t_mail WHERE 1=1 and unikey is not null "
|
||||||
subFilters := []f5.DbQueryFilter{}
|
subFilters := []f5.DbQueryFilter{}
|
||||||
{
|
{
|
||||||
inSub := `tag1 IN (` + q5.ToString(jccommon.MAIL_TAG1_CUSTOM)
|
inSub := `tag1 IN (` + q5.ToString(jccommon.MAIL_TAG1_CUSTOM)
|
||||||
inSub += ")"
|
inSub += ")"
|
||||||
q5.AppendSlice(&subFilters, f5.GetDbFilter().Custom(inSub).And())
|
//q5.AppendSlice(&subFilters, f5.GetDbFilter().Custom(inSub).And())
|
||||||
}
|
}
|
||||||
mails := []*system.Mail{}
|
mails := []*system.Mail{}
|
||||||
f5.GetGoStyleDb().StreamPageQuery(
|
f5.GetGoStyleDb().StreamPageQuery(
|
||||||
|
@ -23,6 +23,7 @@ Attachments:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type Mail struct {
|
type Mail struct {
|
||||||
|
UniKey *string `gorm:"column:unikey" json:"unikey"`
|
||||||
MailId int64 `gorm:"primaryKey;column:mail_id;<-:create" json:"mail_id,string"`
|
MailId int64 `gorm:"primaryKey;column:mail_id;<-:create" json:"mail_id,string"`
|
||||||
MailType int32 `gorm:"column:mail_type;<-:create" json:"mail_type"`
|
MailType int32 `gorm:"column:mail_type;<-:create" json:"mail_type"`
|
||||||
Subject string `gorm:"column:subject" json:"subject"`
|
Subject string `gorm:"column:subject" json:"subject"`
|
||||||
|
2
third_party/f5
vendored
2
third_party/f5
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 2351ba1052caee5651ecb6fedfe6a48fe6c43c0e
|
Subproject commit dd033a252130057af43c17cf1714d0b9a497228d
|
2
third_party/q5
vendored
2
third_party/q5
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ba4b733a804045ae931cbef0c2aebb8b1a636ed7
|
Subproject commit 489449c65d408c649ec4ceeb3fa1ad48a692eb61
|
Loading…
x
Reference in New Issue
Block a user