123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947 |
- package templates;
- import definitions.annotations.*;
- import definitions.types.*;
- /**
- * 接口配置
- */
- @SuppressWarnings("unused")
- class TemplateV1 {
- public static class Enums {
- @AsBO
- @StringEnum
- enum IMMessageType {
- // 文本消息
- TIMTextElem,
- // 地理位置消息
- TIMLocationElem,
- // 表情消息
- TIMFaceElem,
- // 自定义消息,当接收方为 iOS 系统且应用处在后台时,此消息类型可携带除文本以外的字段到 APNs。一条组合消息中只能包含一个 TIMCustomElem
- // 自定义消息元素
- TIMCustomElem,
- // 语音消息。(服务端集成 Rest API 不支持发送该类消息)
- TIMSoundElem,
- // 图像消息。(服务端集成 Rest API 不支持发送该类消息)
- TIMImageElem,
- // 文件消息。(服务端集成 Rest API 不支持发送该类消息)
- TIMFileElem,
- // 视频消息。(服务端集成 Rest API 不支持发送该类消息)
- TIMVideoFileElem,
- }
- @AsBO
- enum FriendInvitationType {
- // 打招呼
- HELLO,
- // 爆照(已废除)
- PHOTO,
- // 心动问答
- ASKING,
- // 唱歌
- SINGING,
- // 走心一画
- DRAWING,
- }
- enum ChangePartner2NewType {
- /** 放弃 */
- TOLOW,
- /** 救活 */
- TONEW,
- }
- /**
- * 性别
- */
- enum Gender {
- /** 未知 */
- UNKONWN,
- /** 男 */
- MALE,
- /** 女 */
- FEMALE,
- }
- enum PartnerThumb {
- /** 不喜欢 */
- UNLIKE,
- /** 喜欢 */
- LIKE,
- }
- /**
- * 提醒ta完善信息通知type
- */
- enum RemindNoticeType {
- /**
- * 未定义
- */
- UNKONWN,
- /**
- * 信息流提醒
- */
- FLOW,
- /**
- * 我心动的
- */
- MYLIKE,
- /**
- * 心动我的
- */
- LIKEME
- }
- }
- public class Models {
- class ChangePartner2New {
- /** 卡片id */
- int partnerId;
- Enums.ChangePartner2NewType toType;
- }
- class Page {
- /** 总数 */
- int total;
- /** 页码 */
- int page;
- /** 页距 */
- int limit;
- }
- class GoodNightUser {
- // 获得的赞数
- int getLike;
- /** 创建时间 */
- int createdAt;
- }
- class AdminPartner {
- /** 卡片id */
- Integer id;
- /** uid */
- Integer uid;
- /** 照片地址 */
- @Optional
- String photo_src;
- @Optional
- String photo_1;
- @Optional
- String photo_2;
- @Optional
- String photo_3;
- @Optional
- String photo_4;
- }
- class Supvip {
- int supvipEndat;
- }
- class Banner {
- int isPraises;
- float charm;
- int count;
- int black;
- }
- class Black {
- @Optional
- String msy;
- @Optional
- String fpdx;
- @Optional
- String black;
- @Optional
- String chat;
- @Optional
- String night;
- @Optional
- String home;
- @Optional
- String account;
- }
- class FpdxProfile {
- // 用户标识
- int uid;
- // 性别
- Enums.Gender sex;
- // x性取向
- Enums.Gender sxo;
- // 首页滑动卡片的性别
- Enums.Gender feedSex;
- // 头像
- String headimgurl;
- // 昵称
- String nickname;
- // 金花数量
- float goldFlower;
- // 红花数量
- float redFlower;
- // 抽卡数量
- int ckCount;
- // 任务完成情况
- String task;
- // 身高
- int height;
- // 年龄
- String age;
- // 家乡
- String home;
- // 地址
- String address;
- // 交友卡片id
- int partnerId;
- @Optional
- String expect;
- String introduce;
- String phone;
- String school;
- String subject;
- String limit;
- int lastSign;
- String updatedAt;
- String createdAt;
- int signCon;
- int hiding;
- String star;
- String tag_1;
- String tag_2;
- String tag_3;
- String tag_4;
- int subscribeAt;
- String fpdxLike;
- String kfAccount;
- int rollback;
- String qq;
- String weixin;
- String education;
- int loginAt;
- @Optional
- String voice;
- int pairMinAge;
- int pairMaxAge;
- int pairProvince;
- int pairAll;
- String photoSrc;
- @Optional
- String photo_1;
- @Optional
- String photo_2;
- @Optional
- String photo_3;
- @Optional
- String photo_4;
- String fullUrlPhotoSrc;
- @Optional
- String fullUrlPhoto1;
- @Optional
- String fullUrlPhoto2;
- @Optional
- String fullUrlPhoto3;
- @Optional
- String fullUrlPhoto4;
- @Optional
- String lastLife;
- @Optional
- String why;
- @Optional
- String pairVoice;
- int jigsawAmount;
- @Optional
- String wxkf;
- @Optional
- String sign;
- boolean isAutoExpand;
- boolean onlyLast;
- float lng;
- float lat;
- String location;
- int feedDis;
- String identityAuth;
- int wxAuth;
- String workState;
- String claimTag;
- int lastLikemeLockAt;
- int beVipAt;
- int supvipEndat;
- boolean taskPhoto;
- boolean taskQuestion;
- boolean taskSing;
- boolean taskQuestionData;
- int logoffAt;
- int appLikeUnlockCount;
- String loginAppPlatform;
- int feedCnt;
- int feedLike;
- @Optional
- Integer bgcolor;
- }
- class ProfileUser {
- // 用户id
- int uid;
- // 性别
- @Optional
- Enums.Gender sex;
- // 性取向
- @Optional
- Enums.Gender sxo;
- // 首页筛选性别
- @Optional
- Enums.Gender feed_sex;
- // 头像
- @Optional
- String headimgurl;
- // 昵称
- @Optional
- String nickname;
- // 金花
- @Optional
- float gold_flower;
- // 红花
- @Optional
- float red_flower;
- // --
- @Optional
- int ck_count;
- // 任务完成情况
- String task;
- // 身高
- @Optional
- int height;
- // 出生年-月-日
- @Optional
- String age;
- // 家乡
- @Optional
- String home;
- // 地址
- @Optional
- String address;
- // 卡片id
- @Optional
- int partner_id;
- // 期望
- @Optional
- String expect;
- // 个人介绍
- @Optional
- String introduce;
- // 手机号
- @Optional
- String phone;
- // 学校
- @Optional
- String school;
- // todo 专业
- @Optional
- String subject;
- // todo
- @Optional
- String limit;
- // todo
- @Optional
- int last_sign;
- // todo
- @Optional
- int updated_at;
- // 创建时间
- @Optional
- String created_at;
- // 签到硬币
- @Optional
- int sign_con;
- // 屏蔽
- @Optional
- int hiding;
- // 星座
- @Optional
- String star;
- // 标签1
- @Optional
- String tag_1;
- // 标签2
- @Optional
- String tag_2;
- // 标签3
- @Optional
- String tag_3;
- // 标签4
- @Optional
- String tag_4;
- // 关注公众号领取小花的时间
- @Optional
- int subscribe_at;
- // todo
- @Optional
- String fpdx_like;
- // todo
- @Optional
- String kf_account;
- // todo
- @Optional
- int rollback;
- // qq
- @Optional
- String qq;
- // 微信
- @Optional
- String weixin;
- // todo
- @Optional
- String education;
- // 登录时间
- @Optional
- int login_at;
- // 语音
- @Optional
- String voice;
- // 照片
- @Optional
- String photo_src;
- // 照片
- @Optional
- String photo_1;
- // 照片
- @Optional
- String photo_2;
- // 照片
- @Optional
- String photo_3;
- // 照片
- @Optional
- String photo_4;
- // 照片
- @Optional
- String full_url_photo_src;
- // 照片
- @Optional
- String full_url_photo;
- // 照片
- @Optional
- String full_url_photo1;
- // 照片
- @Optional
- String full_url_photo2;
- // 照片
- @Optional
- String full_url_photo3;
- // 照片
- @Optional
- String full_url_photo4;
- // todo
- @Optional
- int pair_min_age;
- // todo
- @Optional
- int pair_max_age;
- // todo
- @Optional
- int pair_province;
- // todo
- @Optional
- int pair_all;
- // 最近生活状态
- @Optional
- String last_life;
- // todo
- @Optional
- String why;
- // todo
- @Optional
- String pair_voice;
- // --
- @Optional
- int jigsaw_amount;
- // --
- @Optional
- String wxkf;
- // --
- @Optional
- String sign;
- // todo
- @Optional
- int is_auto_expand;
- // todo
- @Optional
- int feed_dis;
- // todo
- @Optional
- int only_last;
- // 经度
- @Optional
- float lng;
- // 纬度
- @Optional
- float lat;
- // 定位
- @Optional
- String location;
- // 照片认证
- @Optional
- String identity_auth;
- // 微信认证
- @Optional
- int wx_auth;
- // --
- @Optional
- String work_state;
- // --
- @Optional
- String claim_tag;
- // --
- @Optional
- int last_likeme_lock_at;
- // --
- @Optional
- int app_like_unlock_count;
- // 成为普通会员时间
- @Optional
- int be_vip_at;
- // 超级会员到期时间
- @Optional
- int supvip_endat;
- // 注销时间
- @Optional
- int logoff_at;
- // --
- @Optional
- boolean task_photo;
- // --
- @Optional
- boolean task_question;
- // --
- @Optional
- boolean task_sing;
- // --
- @Optional
- boolean task_question_data;
- // 登录平台
- @Optional
- String login_app_platform;
- // 滑卡片次数
- int feed_cnt;
- // 滑卡片喜欢次数
- int feed_like;
- // 背景颜色
- @Optional
- int bgcolor;
- // im-account
- @Optional
- String im_account;
- // im-sig
- @Optional
- String im_sig;
- // 绑定分配对象服务号
- @Optional
- int bind_fpdxfwh;
- // --
- @Optional
- int lock_card;
- // --
- @Optional
- int app_sign_at;
- // --
- @Optional
- int course;
- // --
- @Optional
- String avatar;
- // --
- @Optional
- String birthday;
- // --
- @Optional
- Json supvip;
- // --
- @Optional
- Json black;
- // --
- @Optional
- Json banner;
- // --
- @Optional
- Json tags;
- }
- class ProfileUserSupvip {
- @Optional
- int supvip_endat;
- @Optional
- int supvip_days;
- @Optional
- int locklikeme_cnt;
- }
- class TimMessage {
- String fromAccount;
- String toAccount;
- int msgRandom;
- int msgTimeStamp;
- @DBField("seq")
- int msgSeq;
- Json content;
- }
- }
- class Controllers {
- /**
- * 用户信息相关
- */
- class User {
- // 用户信息
- @Methods({ MethodType.GET })
- class Profile {
- @Request
- @Optional
- String model;
- @Response
- Models.ProfileUser result;
- }
- /**
- * 原/api/msy/user&model=fpdx
- */
- @Methods({ MethodType.GET })
- class GetFpdxProfile {
- @Response
- Models.FpdxProfile user;
- @Response
- @Optional
- Models.Supvip supvip;
- @Response
- boolean bindFpdxfwh;
- @Response
- boolean lockCard;
- @Response
- Models.Banner banner;
- @Response
- Models.Black black;
- @Response
- int appSignAt;
- @Response
- int course;
- @Response
- Json tags;
- }
- /**
- * 更新用户信息
- *
- * 这里参数和原来保持一致,只是文档中不会写
- */
- class UpdateProfile {
- @Response
- Json result;
- }
- /**
- * 切换个人标签
- */
- class ToggleTag {
- @Request
- int tagId;
- @Request
- int group;
- }
- /**
- * 创建个人交友卡片
- */
- class StoreSelfPartner {
- @Request
- @Optional
- String mediaId;
- @Response
- Json result;
- }
- /**
- * 获取问题列表
- */
- @Methods({ MethodType.GET })
- class getQuestionList {
- @Response
- Json result;
- }
- /**
- * 获取问题详情
- */
- @Methods({ MethodType.GET })
- class getQuestionInfo {
- @Request
- Integer questionId;
- @Response
- Json result;
- }
- /**
- * 获取我回答的问题
- */
- @Methods({ MethodType.GET })
- class getQuestionAnswerList {
- @Request
- @Optional
- Integer uid;
- @Response
- Json result;
- }
- /**
- * 回答个人问题
- *
- * 除了questionId,其他参数保持原来规则
- */
- @Methods({ MethodType.POST })
- class CreateAnswer {
- @Request
- Integer questionId;
- @Request
- String content;
- @Response
- Json result;
- }
- /**
- * 删除照片
- */
- class DeletePhotos {
- @Request
- String field;
- }
- /**
- * 切换封面图
- */
- class SelectCover {
- @Request
- String field;
- }
- }
- /**
- * 卡片相关
- */
- class Partner {
- /**
- * 获取卡片用户信息
- */
- class GetPartnerUser {
- @Request
- @Optional
- /** 通过卡片搜索的卡片id */
- Integer partnerId;
- @Request
- @Optional
- /** 通过用户搜索的uid */
- Integer uid;
- @Response
- Json result;
- }
- /**
- * 点赞卡片
- */
- class ThumbPartner {
- /** 卡片id */
- @Request
- int partnerId;
- /** 点赞与否 */
- @Request
- Enums.PartnerThumb thumb;
- @Response
- Json result;
- }
- /**
- * 设置(开/关)隐藏卡片
- */
- @Methods({ MethodType.POST })
- class setPartnerSell {
- @Request
- Integer partner_id;
- @Request
- Boolean is_sell;
- }
- /**
- * 超级会员解锁 App解锁 解锁喜欢我的卡片
- */
- class LockLikeMe {
- @Request
- int partnerId;
- @Request
- @Optional
- String origin;
- }
- }
- /**
- * 签到相关接口
- */
- class SignIn {
- /**
- * 今日签到情况
- */
- @Methods({ MethodType.GET })
- class today {
- @Response
- Json result;
- }
- /**
- * 签到
- */
- @Methods({ MethodType.POST })
- class Sign {
- @Response
- Json result;
- }
- /**
- * 领取小花奖励
- */
- @Methods({ MethodType.POST })
- class rewardFlower {
- @Response
- Json result;
- }
- /**
- * 领取人气值奖励
- */
- @Methods({ MethodType.POST })
- class rewardPopularity {
- @Response
- Json result;
- }
- /**
- * 领取解锁次数
- */
- @Methods({ MethodType.POST })
- class rewardUnLookCard {
- @Response
- Json result;
- }
- /**
- * 领取超级会员满减券
- */
- @Methods({ MethodType.POST })
- class rewardSupVipCoupon {
- @Response
- Json result;
- }
- /**
- * 领取72小时报名打折券
- */
- @Methods({ MethodType.POST })
- class reward72DiscountCoupon {
- @Response
- Json result;
- }
- /**
- * 领取72小时报名入场券
- */
- @Methods({ MethodType.POST })
- class reward72PairCoupon {
- @Response
- Json result;
- }
- }
- /**
- * 好友列表相关
- */
- class Friend {
- /**
- * 申请列表
- */
- @Methods({ MethodType.GET })
- class GetApplyAllList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 发出申请 列表
- */
- @Methods({ MethodType.GET })
- class GetApplySendList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 收到的申请 列表
- */
- @Methods({ MethodType.GET })
- class GetApplyReceiveList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 好友列表
- */
- @Methods({ MethodType.GET })
- class GetAllList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 心动好友 列表
- */
- @Methods({ MethodType.GET })
- class GetEachLikeList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 星标好友 列表
- */
- @Methods({ MethodType.GET })
- class GetStarList {
- @Request
- @Optional
- int page;
- @Response
- Json result;
- }
- /**
- * 好友交互历史|判断是否解锁
- */
- @Methods({ MethodType.GET })
- class GetChatHistory {
- @Request
- @Optional
- int page;
- @Request
- int friendUid;
- @Response
- Json result;
- }
- /**
- * 好友列表未读概览
- */
- @Methods({ MethodType.GET })
- class GetUnreadCount {
- @Response
- Json result;
- }
- /**
- * 同意好友申请
- */
- public class AgreeApply {
- /**
- * 被同意的用户id
- */
- @Request
- int applyUid;
- }
- }
- class DeedFriend {
- /**
- * 删除好友
- */
- class HideFriend {
- @Request
- int friendUid;
- }
- /**
- * 星标好友
- */
- class StarFriend {
- @Request
- int friendUid;
- }
- }
- class Payment {
- /**
- * 卡券列表
- */
- @Methods({ MethodType.GET })
- class GetCouponList {
- @Request
- @Optional
- String type;
- @Request
- @Optional
- String goodsScope;
- @Request
- @Optional
- int perPage;
- @Response
- Json result;
- }
- /**
- * 获取卡券信息
- */
- @Methods({ MethodType.GET })
- class GetCouponDetail {
- @Request
- int couponId;
- @Request
- @Optional
- int goodsId;
- @Response
- Json result;
- }
- /**
- * 获取微信支付参数
- */
- class FetchAppWechatPayParams {
- @Request
- int orderId;
- @Response
- Json result;
- }
- }
- /**
- * 72小时相关
- */
- class Pair {
- /**
- * 获取当前活动信息
- */
- @Methods({ MethodType.GET })
- class ActivityLast {
- @Request
- @Optional
- int activityType;
- @Response
- Json result;
- }
- /**
- * 获取我最后一次报名的数据
- */
- @Methods({ MethodType.GET })
- class ActivityRecent {
- @Response
- Json result;
- }
- /**
- * 通过期数获取匹配信息
- */
- @Methods({ MethodType.GET })
- class ActivityInfo {
- @Request
- int stageId;
- @Response
- Json result;
- }
- /**
- * 获取当前正在进行的活动
- */
- @Methods({ MethodType.GET })
- class GetActivityConductStageId {
- @Response
- Json result;
- }
- /**
- * 最近报名的列表
- */
- @Methods({ MethodType.GET })
- class Lastenroll {
- @Response
- Json result;
- }
- /**
- * 获取匹配列表
- */
- @Methods({ MethodType.GET })
- class GetActivityList {
- @Response
- Json result;
- }
- /**
- * 获取所有标签
- */
- @Methods({ MethodType.GET })
- class GetAllTags {
- @Response
- Json result;
- }
- /**
- * 免费报名
- */
- @Methods({ MethodType.POST })
- class EnrollFree {
- @Request
- @Optional
- Integer stageId;
- @Request
- @Optional
- String mediaId;
- @Request
- Integer state;
- @Request
- Integer score;
- @Request
- @Optional
- String activityType;
- @Request
- @Optional
- String allowPhoto;
- @Response
- Json result;
- }
- /**
- * 付费报名
- */
- @Methods({ MethodType.POST })
- class EnrollPro {
- /**
- * 优惠券ID
- */
- @Request
- @Optional
- Integer couponId;
- @Request
- @Optional
- Integer stageId;
- @Request
- @Optional
- String mediaId;
- @Request
- Integer totalFee;
- @Request
- Integer state;
- @Request
- Integer addScore;
- @Request
- @Optional
- String activityType;
- @Request
- @Optional
- String allowPhoto;
- @Response
- Json result;
- }
- /**
- * 报名下一期
- */
- @Methods({ MethodType.POST })
- class EnrollNext {
- @Request
- Integer lastStageId;
- @Request
- @Optional
- Integer allowPhoto;
- @Response
- Json result;
- }
- /**
- * 退款
- */
- @Methods({ MethodType.GET })
- class refund {
- @Request
- Integer pairId;
- @Response
- Json result;
- }
- /**
- * 通过小花提升72小时匹配成功率
- */
- @Methods({ MethodType.POST })
- class addScoreByFlower {
- @Request
- Integer pairId;
- @Request
- Integer redFlower;
- @Request
- Integer goldFlower;
- @Response
- Json result;
- }
- /**
- * 确认CP关系
- */
- @Methods({ MethodType.PUT })
- class confirmCp {
- @Request
- Integer pairId;
- @Request
- Integer confirm;
- @Response
- Json result;
- }
- /**
- * 反悔CP关系
- */
- @Methods({ MethodType.PUT })
- class regrets {
- @Request
- Integer pairId;
- @Response
- Json result;
- }
- /**
- * 操作日志
- */
- @Methods({ MethodType.POST })
- class operationalLog {
- @Request
- Integer stageId;
- @Request
- String type;
- @Request
- String content;
- @Response
- Json result;
- }
- /**
- * 确认落单
- */
- @Methods({ MethodType.POST })
- class confirmBeAlone {
- @Request
- Integer stageId;
- @Response
- Json result;
- }
- /**
- * 获取保持关系的房间
- */
- @Methods({ MethodType.GET })
- class GetKeepRoom {
- @Response
- Json result;
- }
- /**
- * 保持cp关系
- */
- @Methods({ MethodType.POST })
- class KeepCp {
- @Request
- Integer roomId;
- @Response
- Json result;
- }
- /**
- * 移除cp关系
- */
- @Methods({ MethodType.DELETE })
- class RemoveKeepCp {
- @Request
- Integer roomId;
- @Response
- Json result;
- }
- /**
- * 获取脱单群
- */
- @Methods({ MethodType.GET })
- class GetAloneGroup {
- /**
- * 期数
- */
- @Request
- @Optional
- Integer stageId;
- /**
- * 获取类型(72h|qbj)【默认:72h】
- */
- @Request
- @Optional
- String activityType;
- @Response
- Json result;
- }
- }
- class Invite {
- /**
- * 获取最近的邀请列表
- */
- @Methods({ MethodType.GET })
- class LastInvite {
- @Response
- Json result;
- }
- }
- class Share {
- /**
- * 获取匹配分享记录
- */
- class PairGet {
- @Request
- int listId;
- @Response
- Json result;
- }
- /**
- * 通过vip提升成功率 / 获取我邀请人的列表
- */
- class PairVipCheck {
- @Request
- int inviteId;
- @Response
- Json result;
- }
- /**
- * 获取解锁进度详情 详情-喜欢我的解锁
- */
- class LikeMe {
- @Request
- int praiseId;
- @Response
- Json result;
- }
- /**
- * 会员专属加成 助力-喜欢我的解锁分享
- */
- class LikeMeCheck {
- @Request
- int praiseId;
- @Response
- Json result;
- }
- /**
- * 助力历史接口
- */
- class LikeMeHistory {
- @Request
- int praiseId;
- @Response
- Json result;
- }
- }
- class Banner {
- /**
- * 获取某位置广告列表
- */
- class PositionList {
- @Request
- String position;
- @Response
- Json result;
- }
- }
- /**
- * 辅助接口
- */
- class Common {
- /**
- * 人脸识别
- */
- class FaceDetect {
- @Request
- String image;
- @Response
- Json result;
- }
- }
- /**
- * 高德地图接口 掉用量限制:https://lbs.amap.com/api/webservice/guide/tools/flowlevel
- * 高德错误码:https://lbs.amap.com/api/webservice/guide/tools/info
- */
- class Lbs {
- /**
- * ip定位 高德文档:https://lbs.amap.com/api/webservice/guide/api/ipconfig
- */
- @Methods({ MethodType.POST })
- class ip {
- /**
- * 详看高德文档
- */
- @Request
- Json parameters;
- /**
- * 详看高德文档
- */
- @Response
- Json data;
- }
- /**
- * 行政区域查询 高德文档:https://lbs.amap.com/api/webservice/guide/api/district
- */
- @Methods({ MethodType.POST })
- class district {
- /**
- * 详看高德文档
- */
- @Request
- Json parameters;
- /**
- * 详看高德文档
- */
- @Response
- Json data;
- }
- /**
- * 逆地理编码 高德文档:https://lbs.amap.com/api/webservice/guide/api/georegeo#regeo
- */
- @Methods({ MethodType.POST })
- class regeo {
- /**
- * 详看高德文档
- */
- @Request
- Json parameters;
- /**
- * 详看高德文档
- */
- @Response
- Json data;
- }
- /**
- * 地理编码 https://lbs.amap.com/api/webservice/guide/api/georegeo#geo
- */
- @Methods({ MethodType.POST })
- class geo {
- /**
- * 详看高德文档
- */
- @Request
- Json parameters;
- /**
- * 详看高德文档
- */
- @Response
- Json data;
- }
- }
- /**
- * 通知开关配置
- */
- class Notice {
- /**
- * 获取我的通知开关配置
- */
- @Methods({ MethodType.GET })
- class GetNoticeProfileList {
- @Response
- Json result;
- }
- /**
- * 获取通知开关配置
- */
- @Methods({ MethodType.GET })
- class GetNoticeByKeyToInt {
- /**
- * 通知key
- */
- @Request
- String key;
- @Response
- Json result;
- }
- /**
- * 修改通知开关配置
- */
- class UpdateNoticeByKey {
- /**
- * 通知key
- */
- @Request
- String key;
- /**
- * 开关
- */
- @Request
- @Optional
- boolean isOpen;
- }
- /**
- * 修改通知群组开关配置
- */
- class UpdateNoticeByGroup {
- /**
- * 群组
- */
- @Request
- String group;
- /**
- * 开关
- */
- @Request
- Boolean isOpen;
- }
- }
- class Homepage {
- /**
- * 发现页数据
- */
- @Methods({ MethodType.GET })
- class ActivityTimeTable {
- @Response
- Json result;
- }
- /**
- * 信息流
- */
- @Middleware("api.encrypt")
- class Feed {
- @Request
- @Optional
- int take;
- @Response
- Json result;
- }
- /**
- * 游客信息流
- */
- @Middleware("api.encrypt")
- class OpenidFeed {
- @Request
- String openid;
- @Request
- @Optional
- int take;
- @Response
- Json result;
- }
- /**
- * 获取卡片其他信息
- */
- class FeedScore {
- @Request
- int partnerId;
- @Response
- Json result;
- }
- }
- class UserNotice {
- @Methods({ MethodType.GET })
- class SysnoticeDesc {
- @Response
- Json result;
- }
- /**
- * 系统消息
- */
- @Methods({ MethodType.GET })
- class SysnoticeList {
- @Request
- @Optional
- int page;
- @Request
- int unread;
- @Response
- Json result;
- }
- }
- /**
- * 用户首页列表接口
- */
- class UserHome {
- /**
- * 获取心动我的列表
- */
- @Methods({ MethodType.GET })
- class GetLikeMeList {
- /**
- * 分页(页数)
- */
- @Request
- @Optional
- Integer page;
- /**
- * 每页多少
- */
- @Request
- @Optional
- Integer limit;
- @Response
- Json result;
- }
- /**
- * 获取我喜欢的列表
- */
- @Methods({ MethodType.GET })
- class getMyLikeList {
- /**
- * 分页(页数)
- */
- @Request
- @Optional
- Integer page;
- /**
- * 每页多少
- */
- @Request
- @Optional
- Integer limit;
- @Response
- Json result;
- }
- /**
- * 访客列表
- */
- class getVisitorList {
- /**
- * 分页(页数)
- */
- @Request
- @Optional
- Integer page;
- /**
- * 每页多少
- */
- @Request
- @Optional
- Integer limit;
- /**
- * 用户id;不天默认取自己的
- */
- @Request
- @Optional
- int uid;
- @Response
- Json result;
- }
- /**
- * 提醒TA补全信息
- */
- @Methods({ MethodType.POST })
- class remindComplementCard {
- @Request
- Integer remind_uid;
- @Request
- Enums.RemindNoticeType type;
- }
- /**
- * 获取人气值
- */
- class getPopularity {
- /** 分享助力到期时间 */
- int popularity_share_end_at;
- /** 签到助力到期时间 */
- int popularity_sign_end_at;
- /** 超级会员助力到期时间 */
- int popularity_supvip_endat;
- /** 人气值 */
- int popularity;
- /** 人气值基础分 */
- int base;
- }
- }
- class Tags {
- /**
- * 获取全部标签列表
- */
- class getAllTag {
- @Response
- Json result;
- }
- }
- /**
- * 城市相关接口
- *
- * 城市列表。搜索等等
- */
- class City {
- /**
- * 获取城市列表
- */
- @Methods({ MethodType.GET })
- class getList {
- @Response
- Json result;
- }
- /**
- * 搜索城市
- */
- @Methods({ MethodType.GET })
- class search {
- /**
- * 关键词
- */
- @Request
- String keyword;
- @Response
- Json result;
- }
- }
- /**
- * 学校相关接口
- *
- * 列表。搜索等等
- */
- class School {
- /**
- * 学校列表
- */
- @Methods({ MethodType.GET })
- class getList {
- @Request
- @Optional
- String keyword;
- @Response
- Json result;
- }
- }
- class AdminPartner {
- /**
- * 已精选列表
- */
- class isSelectedList {
- /** 页码 */
- @Request
- @Optional
- int pages;
- /** 是否只看可推流的:true=是;false=全部 */
- @Request
- @Optional
- Boolean isFeedPush;
- /** 性别 0=全部 */
- @Request
- @Optional
- Enums.Gender sex;
- @Response
- Models.Page page;
- Models.AdminPartner[] partners;
- }
- /**
- * 取消精选
- */
- class unSelectPartner {
- /** 卡片id */
- @Request
- @Optional
- int partnerId;
- }
- /**
- * 标记不推荐的列表
- */
- class lowList {
- /** 页码 */
- @Request
- @Optional
- int pages;
- @Response
- Models.Page page;
- Models.AdminPartner[] partners;
- }
- /**
- * 救活卡片
- */
- class change2New {
- /** 请求数据包 */
- @Request
- @Optional
- Models.ChangePartner2New[] req;
- }
- }
- class ReportLog {
- /**
- * 信息流上报日志
- */
- class feedLog {
- @Request
- int partnerId;
- @Request
- int uid;
- @Request
- Json data;
- }
- /**
- * 访问他人主页日志
- */
- public class ClickUserHome {
- /**
- * 进入时间戳
- */
- @Request
- int intoAt;
- /**
- * 离开时间戳
- */
- @Request
- int leaveAt;
- /**
- * 访问用户
- */
- @Request
- int clickUid;
- /**
- * 被访问用户
- */
- @Request
- int homeUid;
- /**
- * 场景
- */
- @Request
- int scene;
- }
- }
- /**
- * IM相关的接口
- *
- * 消息存在 腾讯云消息,本地消息,最近消息 超过七天未同步自己服务器消息,需要先拉最近消息 其他时候,刚进入时拉取腾讯云用户列表的消息
- * 如果有消息返回,重复拉取直到全部拉出 并且上报已读,以免未读消息被重复拉取
- *
- * 发消息时,先发送腾讯云,配置单聊消息回调可以自动上报自己的服务器,记录双方的最近消息 每次上报新消息时,保留自己的最近消息十条
- *
- *
- *
- * 暂时不确定定位消息是否使用seq,如果使用则必须先发送获取seq后上报
- */
- class Im {
- /**
- * 获取用户最近消息,最近10条
- *
- * 用户读列表时会依次从腾讯云获取聊天记录 不满10条的从这里读 不需要每次读,并且进入会话后不使用这个
- */
- class GetUsersLatests {
- @Request
- int[] uids;
- // 先全甩回去
- @Response
- Models.TimMessage[] messages;
- }
- /**
- * 发送消息
- *
- * 由服务端转接发送消息
- */
- class Send {
- @Request
- Models.TimMessage message;
- }
- /**
- * 撤回消息,删除两个人的最近消息
- */
- class Revoke {
- @Request
- Models.TimMessage message;
- }
- /**
- * 删除消息,删除自己的最近消息
- */
- class Delete {
- @Request
- Models.TimMessage message;
- }
- /**
- * 标记消息已读
- */
- class MarkUserMessagesRead {
- @Request
- Models.TimMessage message;
- }
- }
- }
- }
|