```json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "service-admin-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/service-admin-wealth/main.go" }, { "name": "service-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/service-wealth/main.go" }, { "name": "service-batchjob-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/batchjob-fund/main.go", "args": ["consolidateOrder","monetary"] // "args": ["consolidateOrder","notMonetary"] }, // var isfund string // if fundType == constant.WorkerArgFundTypeMonetary { // isfund = "monetary" // } else { // isfund = "notMonetary" // } ] } ``` ```yaml server: # RESTful 服务配置 name: batchjob-fund env: sit mode: debug # server mode: release, debug, test,默认 release log: # 日志 default-config: # 全局默认配置 max-size: 100 # 单位 M max-backups: 10 # 日志文件保留数量 max-age: 10 # 日志文件最长保留天数 compress: false # 是否压缩日志 name: "batchjobFund" # Logger 的名字 development: true # 是否是开发模式。如果是开发模式,会对 DPanicLevel 进行堆栈跟踪。 level: "debug" # 日志级别,优先级从低到高依次为:debug, info, warn, error, dpanic, panic, fatal。 format: "json" # 支持的日志输出格式,目前支持 console 和 json 两种。console其实就是text格式。 async: true # 是否开启异步模式 buffer-size: 256 # 日志缓冲大小 单位 KB flush-interval: "3s" # 多久刷新缓冲 dir: "/data/logs/batchjobFund/" use-sub-dir: true mysql: host: 10.36.0.66:3306 # MySQL 机器 ip 和端口,默认 127.0.0.1:3306 username: trade_rw # MySQL 用户名(建议授权最小权限集) password: Zs7HZATcfhUHpFJZohIj # MySQL 用户密码 database: tradedb # iam 系统所用的数据库名 max-idle-connections: 100 # MySQL 最大空闲连接数,默认 100 max-open-connections: 100 # MySQL 最大打开的连接数,默认 100 max-connection-life-time: 10s # 空闲连接最大存活时间,默认 10s log-level: 4 # GORM log level, 1: silent, 2:error, 3:warn, 4:info mysqlCounter: host: 10.36.0.66:3306 # MySQL 机器 ip 和端口,默认 127.0.0.1:3306 username: counterdb_rw # MySQL 用户名(建议授权最小权限集) password: Zs7HZATcfhUHpFJZohIj # MySQL 用户密码 database: counterdb # iam 系统所用的数据库名 max-idle-connections: 100 # MySQL 最大空闲连接数,默认 100 max-open-connections: 100 # MySQL 最大打开的连接数,默认 100 max-connection-life-time: 10s # 空闲连接最大存活时间,默认 10s log-level: 4 # GORM log level, 1: silent, 2:error, 3:warn, 4:info redis: tag: cluster # 集群 addrs: - 10.36.0.66:7001 - 10.36.0.66:7002 - 10.36.0.66:7003 username: uc_user password: M8H29dak93yRT8df dependence: # 依赖项 iasia-proxy: host: http://iasia-sit.fosunhani.cn quotationService: # host: https://wealth-sit.fosunhanig.com quotationMktdata: host: https://mktdata-sit.fosunhanig.com mcService: host: http://sit-local.fotechwealth.com.local/service-mc-receiver.trade oss: host: http://sit-local.fotechwealth.com.local/service-oss.trade ucService: host: http://sit-local.fotechwealth.com.local/service-uc.trade fxService: host: http://sit-local.fotechwealth.com.local/service-fx.trade portfolioService: host: http://sit-local.fotechwealth.com.local/service-portfolio.trade msghubService: host: http://sit-local.fotechwealth.com.local/service-msghub.trade exportedOrderReceivers: # 接收人邮箱 - yongchao.guo@fosunhn.net - dong.wei@fosunhn.net exportedOrderEmailTemplateId: 232 # 邮件模板 dingTalkFundTask: # 基金订单处理异常提示 requestUrl: https://oapi.dingtalk.com accessToken: 44ab41ced64f7bd30e9b2f9c0d80b6661f4eb1a0c589df4a11c131faef332d23 secret: SEC52c10876e4f08c4a10ea9ab3b66fedde4c1c9df801e6ab042a35e2f0ae7bdfac dingTalkOrderNotify: # 未处理订单数量提示 requestUrl: https://oapi.dingtalk.com accessToken: 891559742cddf53f3582981b8c0d119189783364ac4d0a919699c772a3d335b4 secret: SEC2e587ce1bc35c20b1d73248fd844a4ef9a2ab0985a9b7437353f20a355d8412e dingTalkSubscribeNotify: # 未处理订单数量提示 requestUrl: https://oapi.dingtalk.com accessToken: 891559742cddf53f3582981b8c0d119189783364ac4d0a919699c772a3d335b4 secret: SEC2e587ce1bc35c20b1d73248fd844a4ef9a2ab0985a9b7437353f20a355d8412e dingTalkEcashGrayNotify: # 新开通星财宝人员提示 requestUrl: https://oapi.dingtalk.com accessToken: 44ab41ced64f7bd30e9b2f9c0d80b6661f4eb1a0c589df4a11c131faef332d23 secret: SEC52c10876e4f08c4a10ea9ab3b66fedde4c1c9df801e6ab042a35e2f0ae7bdfac dingTalk: host: https://oapi.dingtalk.com orderTemplateFileDir: ./config/batchjob-fund/ # 上手订单文件模板路径 pdfService: gaotengBuy: "https://pub-sit.fosunhanig.com/public/v1/pdf/fund/gaotengSubscription/pdf" gaotengSell: "https://pub-sit.fosunhanig.com/public/v1/pdf/fund/gaotengRedemption/pdf" preSettle: templateId: 1665 # 认购款打款通知模板ID sendEmail: # 认购款打款通知对象 - chao.zhu@fosunhn.net - junhua.zhou@fosunhn.net - dong.wei@fosunhn.net - xinghai.liao@fosunhn.net - shihua.wu@fosunhn.net - manying.guan@fosunhn.net task: request-iasia-rate-limit: 100 # 每秒最大请求 iasia 多少次 file-directory: order-file: /data/data/wealth/report/NomineeOrders/ confirmation-file: /data/data/wealth/report/ConfirmFile/ settlement-file: /data/data/wealth/report/SettlementFile/ msgTemplateIds: # 消息中心模板 fund: accept: 1310 # 公募/星财宝基金认购/赎回已受理 subComplete: 1311 # 公募/星财宝基金认购已完成 redeemConfirm: 1312 # 公募/星财宝基金赎回已确认份额 redeemComplete: 1313 # 公募/星财宝基金赎回金额已到账 reject: 1314 # 公募/星财宝基金认购/赎回已拒绝 note: # 票据 accept: 1614 # 认购受理 subConfirm: 1615 # 认购成交 subReject: 1616 # 认购拒绝 subComplete: 1617 # 认购到期兑付 nominee: #集合订单 iFastOrderWarn: 1666 #产生iFast赎回单 bond: Expire: 177852 msgParams: #消息中心参数 nominee: #集合订单 iFastOrderWarn: email: - jun.zhou@fosunhn.net ``` Loading... ```json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "service-admin-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/service-admin-wealth/main.go" }, { "name": "service-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/service-wealth/main.go" }, { "name": "service-batchjob-wealth", "type": "go", "request": "launch", "mode": "auto", // "program": "${fileDirname}" "program": "${workspaceFolder}/cmd/batchjob-fund/main.go", "args": ["consolidateOrder","monetary"] // "args": ["consolidateOrder","notMonetary"] }, // var isfund string // if fundType == constant.WorkerArgFundTypeMonetary { // isfund = "monetary" // } else { // isfund = "notMonetary" // } ] } ``` ```yaml server: # RESTful 服务配置 name: batchjob-fund env: sit mode: debug # server mode: release, debug, test,默认 release log: # 日志 default-config: # 全局默认配置 max-size: 100 # 单位 M max-backups: 10 # 日志文件保留数量 max-age: 10 # 日志文件最长保留天数 compress: false # 是否压缩日志 name: "batchjobFund" # Logger 的名字 development: true # 是否是开发模式。如果是开发模式,会对 DPanicLevel 进行堆栈跟踪。 level: "debug" # 日志级别,优先级从低到高依次为:debug, info, warn, error, dpanic, panic, fatal。 format: "json" # 支持的日志输出格式,目前支持 console 和 json 两种。console其实就是text格式。 async: true # 是否开启异步模式 buffer-size: 256 # 日志缓冲大小 单位 KB flush-interval: "3s" # 多久刷新缓冲 dir: "/data/logs/batchjobFund/" use-sub-dir: true mysql: host: 10.36.0.66:3306 # MySQL 机器 ip 和端口,默认 127.0.0.1:3306 username: trade_rw # MySQL 用户名(建议授权最小权限集) password: Zs7HZATcfhUHpFJZohIj # MySQL 用户密码 database: tradedb # iam 系统所用的数据库名 max-idle-connections: 100 # MySQL 最大空闲连接数,默认 100 max-open-connections: 100 # MySQL 最大打开的连接数,默认 100 max-connection-life-time: 10s # 空闲连接最大存活时间,默认 10s log-level: 4 # GORM log level, 1: silent, 2:error, 3:warn, 4:info mysqlCounter: host: 10.36.0.66:3306 # MySQL 机器 ip 和端口,默认 127.0.0.1:3306 username: counterdb_rw # MySQL 用户名(建议授权最小权限集) password: Zs7HZATcfhUHpFJZohIj # MySQL 用户密码 database: counterdb # iam 系统所用的数据库名 max-idle-connections: 100 # MySQL 最大空闲连接数,默认 100 max-open-connections: 100 # MySQL 最大打开的连接数,默认 100 max-connection-life-time: 10s # 空闲连接最大存活时间,默认 10s log-level: 4 # GORM log level, 1: silent, 2:error, 3:warn, 4:info redis: tag: cluster # 集群 addrs: - 10.36.0.66:7001 - 10.36.0.66:7002 - 10.36.0.66:7003 username: uc_user password: M8H29dak93yRT8df dependence: # 依赖项 iasia-proxy: host: http://iasia-sit.fosunhani.cn quotationService: # host: https://wealth-sit.fosunhanig.com quotationMktdata: host: https://mktdata-sit.fosunhanig.com mcService: host: http://sit-local.fotechwealth.com.local/service-mc-receiver.trade oss: host: http://sit-local.fotechwealth.com.local/service-oss.trade ucService: host: http://sit-local.fotechwealth.com.local/service-uc.trade fxService: host: http://sit-local.fotechwealth.com.local/service-fx.trade portfolioService: host: http://sit-local.fotechwealth.com.local/service-portfolio.trade msghubService: host: http://sit-local.fotechwealth.com.local/service-msghub.trade exportedOrderReceivers: # 接收人邮箱 - yongchao.guo@fosunhn.net - dong.wei@fosunhn.net exportedOrderEmailTemplateId: 232 # 邮件模板 dingTalkFundTask: # 基金订单处理异常提示 requestUrl: https://oapi.dingtalk.com accessToken: 44ab41ced64f7bd30e9b2f9c0d80b6661f4eb1a0c589df4a11c131faef332d23 secret: SEC52c10876e4f08c4a10ea9ab3b66fedde4c1c9df801e6ab042a35e2f0ae7bdfac dingTalkOrderNotify: # 未处理订单数量提示 requestUrl: https://oapi.dingtalk.com accessToken: 891559742cddf53f3582981b8c0d119189783364ac4d0a919699c772a3d335b4 secret: SEC2e587ce1bc35c20b1d73248fd844a4ef9a2ab0985a9b7437353f20a355d8412e dingTalkSubscribeNotify: # 未处理订单数量提示 requestUrl: https://oapi.dingtalk.com accessToken: 891559742cddf53f3582981b8c0d119189783364ac4d0a919699c772a3d335b4 secret: SEC2e587ce1bc35c20b1d73248fd844a4ef9a2ab0985a9b7437353f20a355d8412e dingTalkEcashGrayNotify: # 新开通星财宝人员提示 requestUrl: https://oapi.dingtalk.com accessToken: 44ab41ced64f7bd30e9b2f9c0d80b6661f4eb1a0c589df4a11c131faef332d23 secret: SEC52c10876e4f08c4a10ea9ab3b66fedde4c1c9df801e6ab042a35e2f0ae7bdfac dingTalk: host: https://oapi.dingtalk.com orderTemplateFileDir: ./config/batchjob-fund/ # 上手订单文件模板路径 pdfService: gaotengBuy: "https://pub-sit.fosunhanig.com/public/v1/pdf/fund/gaotengSubscription/pdf" gaotengSell: "https://pub-sit.fosunhanig.com/public/v1/pdf/fund/gaotengRedemption/pdf" preSettle: templateId: 1665 # 认购款打款通知模板ID sendEmail: # 认购款打款通知对象 - chao.zhu@fosunhn.net - junhua.zhou@fosunhn.net - dong.wei@fosunhn.net - xinghai.liao@fosunhn.net - shihua.wu@fosunhn.net - manying.guan@fosunhn.net task: request-iasia-rate-limit: 100 # 每秒最大请求 iasia 多少次 file-directory: order-file: /data/data/wealth/report/NomineeOrders/ confirmation-file: /data/data/wealth/report/ConfirmFile/ settlement-file: /data/data/wealth/report/SettlementFile/ msgTemplateIds: # 消息中心模板 fund: accept: 1310 # 公募/星财宝基金认购/赎回已受理 subComplete: 1311 # 公募/星财宝基金认购已完成 redeemConfirm: 1312 # 公募/星财宝基金赎回已确认份额 redeemComplete: 1313 # 公募/星财宝基金赎回金额已到账 reject: 1314 # 公募/星财宝基金认购/赎回已拒绝 note: # 票据 accept: 1614 # 认购受理 subConfirm: 1615 # 认购成交 subReject: 1616 # 认购拒绝 subComplete: 1617 # 认购到期兑付 nominee: #集合订单 iFastOrderWarn: 1666 #产生iFast赎回单 bond: Expire: 177852 msgParams: #消息中心参数 nominee: #集合订单 iFastOrderWarn: email: - jun.zhou@fosunhn.net ``` 最后修改:2025 年 02 月 18 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏