在软件开发中,对接的接口文档中 ,有一列为 O/M/C,O、M、C 分别代表什么意思

如题所述

软件接口协议中这些标识很常见,用来约束协议中每个域的传输条件,一般来讲:
O的意思是可选,英文缩写Optional,表示可传可不传。
M的意思是强制性的,英文缩写Mandatory,表示是必传的域。
C的意思是有条件的,英文缩写Conditional,表示这个域根据条件传输,比如你有个协议是传输商品的金额,如果有打折的情况下,必须传输打折商品的详情,那么打折商品详情就可以定义成C
温馨提示:答案为网友推荐,仅供参考
第1个回答  2018-07-03

网页链接

"Mandatory" is presumably related to "mandate" and used when it's a matter of law or regulation.

"Obligatory" is presumably related to "obligation" and used when it's a matter of moral, social or other obligation rather than law. (Like "the obligatory happy ending".)

"Compulsory" seems to mean that you are forced to do something, but the forcing mechanism is unspecified?

第2个回答  2018-03-29
M :强制域(Mandatory) 必须上传字段
C:条件域(Conditional)条件字段,当满足XXX条件时必须上传的字段
O:选用域(Optional)可以选字段,可填写可不填写
第3个回答  2018-01-30
M-must 必须填写的域 O-option 自选填写的域 C-conditional 某条件成立时必须填写的域
第4个回答  2018-01-04
C 条件可选,满足条件出现
O 可选
M 必选
相似回答