123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- syntax = "v1"
- info(
- title: // TODO: add title
- desc: // TODO: add description
- author: "fuwencai"
- email: "fuwencai@topnet.net.cn"
- )
- type (
- Info {
- TotalCount int64 `json:"totalCount"` // 本次查询info_id总量
- ExistCount int64 `json:"existCount"` // 已存在的info_id的数量
- NewCount int64 `json:"newCount"` // 不存在的info_id的数量
- }
- DedupReq {
- PersonId string `form:"personId"` //人员id
- InfoId string `form:"infoId"` //信息id 逗号分隔
- EntId string `form:"entId"` // 企业id
- IsInsert bool `form:"isInsert"` // 是否插入不重复的数据
- IsEnt bool `form:"isEnt"` //是否按企业id判重
- }
- DedupResp {
- Code int64 `json:"code"`
- Msg string `json:"msg"`
- Data Info `json:"data"`
- }
- // 根据账户id判重
- DedupByAccountReq {
- PersonId string `form:"personId"` //人员id
- InfoId string `form:"infoId"` //信息id 逗号分隔
- AccountId string `form:"accountId"` // 账户id
- DataDesc int64 `form:"dataDesc"` // 字段包规格 1-高级字段包 2-标准字段包
- }
- )
- type (
- EntCountReq {
- EntId string `form:"entId"` // 企业id
- }
- EntCountResp {
- Code int64 `json:"code"`
- Msg string `json:"msg"`
- Data int64 `json:"data"`
- }
- )
- service deduplication-api {
- @handler Datadeduplication // 调用数据去重
- post /data/deduplication (DedupReq) returns (DedupResp)
- @handler GetEntCount // 调用数据去重
- post /data/getEntCount (EntCountReq) returns (EntCountResp)
- @handler dedupByAcount // 根据账户id判重
- post /data/dedupByAcount/:id (DedupByAccountReq) returns (DedupResp)
- @handler dedupAndSave // 根据账户id判重并存入数据
- post /data/dedupAndSave/:id (DedupByAccountReq) returns (DedupResp)
- }
|