(data *consts.Keyinfo)
| 41 | |
| 42 | } |
| 43 | func WriteDataToDatabase(data *consts.Keyinfo) error { |
| 44 | logger.Info.Println("检测到敏感信息:", data.Key_text) |
| 45 | if InsertData(db, data) { |
| 46 | notify.TaskBeginSendmsg(data) |
| 47 | } |
| 48 | return nil |
| 49 | } |
| 50 | |
| 51 | // 插入数据-存在true -不存在false |
| 52 | func InsertData(db *sql.DB, data *consts.Keyinfo) bool { |
no test coverage detected