MCPcopy
hub / github.com/YMFE/yapi / getBaseInfo

Method getBaseInfo

server/models/project.js:140–150  ·  view source on GitHub ↗
(id, select)

Source from the content-addressed store, hash-verified

138 }
139
140 getBaseInfo(id, select) {
141 select =
142 select ||
143 '_id uid name basepath switch_notice desc group_id project_type env icon color add_time up_time pre_script after_script project_mock_script is_mock_open strice is_json5 tag';
144 return this.model
145 .findOne({
146 _id: id
147 })
148 .select(select)
149 .exec().then(this.handleEnvNullData);
150 }
151
152 getByDomain(domain) {
153 return this.model

Callers 15

getMethod · 0.80
listMethod · 0.80
getCaseListMethod · 0.80
getCaseEnvListMethod · 0.80
getCaseMethod · 0.80
listByUpdateMethod · 0.80
getMethod · 0.80
listMethod · 0.80
listByCatMethod · 0.80
listByMenuMethod · 0.80
upMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected