zwxi 1 년 전
부모
커밋
cb1703cefe
1개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 19 0
      services/mail_attachment.go

+ 19 - 0
services/mail_attachment.go

@@ -0,0 +1,19 @@
+package services
+
+import (
+	"context"
+	"eta/eta_data_analysis/utils"
+	"fmt"
+	"os/exec"
+)
+
+func MailAttachment(context.Context) (err error)  {
+	cmd := exec.Command("python3", utils.CoalMailAttachmentScriptPath)
+	outputByte, err := cmd.Output()
+	fmt.Println("start")
+	if err != nil {
+		return
+	}
+	fmt.Println(string(outputByte))
+	return
+}